Replace lsp/nullls format on save with conform.nvim

This commit is contained in:
Fábio André Damas 2025-08-26 09:24:22 +01:00
parent 4ed2e26529
commit 8f912a52df
3 changed files with 26 additions and 39 deletions

View 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",
},
},
}