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 {
|
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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue