feat(conform): add additional configs
This commit is contained in:
parent
c048cf66ea
commit
a9222a57f7
1 changed files with 6 additions and 3 deletions
|
|
@ -1,9 +1,12 @@
|
|||
return {
|
||||
'stevearc/conform.nvim',
|
||||
"stevearc/conform.nvim",
|
||||
config = function()
|
||||
require("conform").setup({
|
||||
formatters_by_ft = {
|
||||
go = { "gofumpt" },
|
||||
lua = { "stylua" },
|
||||
sql = { "sqlfmt" },
|
||||
bash = { "shfmt" },
|
||||
go = { "gofumpt", "goimports" },
|
||||
html = { "biome", "prettier" },
|
||||
yaml = { "prettier" },
|
||||
json = { "jq" },
|
||||
|
|
@ -25,7 +28,7 @@ return {
|
|||
"$FILENAME",
|
||||
},
|
||||
stdin = false,
|
||||
}
|
||||
},
|
||||
},
|
||||
format_on_save = {
|
||||
lsp_fallback = true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue