making my nvim config modular
This commit is contained in:
parent
d93d8dd49f
commit
28d630d239
13 changed files with 655 additions and 680 deletions
19
lua/Judokasarin/plugins/AutoFormat.lua
Normal file
19
lua/Judokasarin/plugins/AutoFormat.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
return { -- Autoformat
|
||||
'stevearc/conform.nvim',
|
||||
opts = {
|
||||
notify_on_error = false,
|
||||
format_on_save = {
|
||||
timeout_ms = 500,
|
||||
lsp_fallback = true,
|
||||
},
|
||||
formatters_by_ft = {
|
||||
lua = { 'stylua' },
|
||||
-- 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 = { { "prettier" } },
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue