feat(conform): add additional configs

This commit is contained in:
Simon Lasbrugnas 2026-01-06 13:04:54 +01:00
parent c048cf66ea
commit a9222a57f7
Signed by untrusted user who does not match committer: simon
GPG key ID: 86039876BA6ED8DE

View file

@ -1,9 +1,12 @@
return { return {
'stevearc/conform.nvim', "stevearc/conform.nvim",
config = function() config = function()
require("conform").setup({ require("conform").setup({
formatters_by_ft = { formatters_by_ft = {
go = { "gofumpt" }, lua = { "stylua" },
sql = { "sqlfmt" },
bash = { "shfmt" },
go = { "gofumpt", "goimports" },
html = { "biome", "prettier" }, html = { "biome", "prettier" },
yaml = { "prettier" }, yaml = { "prettier" },
json = { "jq" }, json = { "jq" },
@ -25,7 +28,7 @@ return {
"$FILENAME", "$FILENAME",
}, },
stdin = false, stdin = false,
} },
}, },
format_on_save = { format_on_save = {
lsp_fallback = true, lsp_fallback = true,