modulize plugins
This commit is contained in:
parent
d741099eee
commit
fecc907ac1
15 changed files with 621 additions and 0 deletions
23
lua/kickstart/plugins/conform.lua
Normal file
23
lua/kickstart/plugins/conform.lua
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
return { -- Autoformat
|
||||
'stevearc/conform.nvim',
|
||||
event = { 'BufReadPre', 'BufNewFile' },
|
||||
opts = {
|
||||
notify_on_error = false,
|
||||
format_on_save = {
|
||||
timeout_ms = 500,
|
||||
lsp_fallback = true,
|
||||
},
|
||||
formatters_by_ft = {
|
||||
lua = { 'stylua' },
|
||||
yaml = { 'prettier' },
|
||||
bash = { 'shfmt' },
|
||||
|
||||
-- Conform can also run multiple formatters sequentially
|
||||
-- python = { "isort", "black" },
|
||||
--
|
||||
-- You can use a sub-list to tell conform to run *until* a formatter
|
||||
-- is found.
|
||||
-- javascript = { { "prettierd", "prettier" } },
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue