Replace lsp/nullls format on save with conform.nvim
This commit is contained in:
parent
4ed2e26529
commit
8f912a52df
3 changed files with 26 additions and 39 deletions
19
lua/plugins/conform.nvim.lua
Normal file
19
lua/plugins/conform.nvim.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
return {
|
||||
'stevearc/conform.nvim',
|
||||
opts = {
|
||||
formatters_by_ft = {
|
||||
javascript = { "prettierd", "prettier", stop_after_first = true },
|
||||
kulala = { "kulala-fmt" },
|
||||
lua = { lsp_format = "fallback" },
|
||||
go = { lsp_format = "fallback" },
|
||||
rust = { lsp_format = "fallback" },
|
||||
toml = { lsp_format = "fallback" },
|
||||
yaml = { lsp_format = "fallback" },
|
||||
java = { lsp_format = "fallback" }
|
||||
},
|
||||
format_on_save = {
|
||||
timeout_ms = 500,
|
||||
lsp_format = "fallback",
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue