chore(neovim): update formatter configurations

This commit is contained in:
Yorick Barbanneau 2025-09-25 23:23:02 +02:00
parent 97de9851ed
commit d563805909
Signed by: ephase
GPG key ID: 246042E52B41FFCF
2 changed files with 13 additions and 3 deletions

View file

@ -71,7 +71,7 @@ in
yaml-language-server
# Formatters
nixfmt-rfc-style
alejandra
shfmt
yamlfmt
];

View file

@ -4,10 +4,20 @@ require("conform").setup({
timeout_ms = 500,
lsp_format = "never",
},
formatters = {
terraform = {
inherit = false,
command = "tofu",
args = { "fmt", "-" },
stdin = true,
},
},
formatters_by_ft = {
yaml = {"yamlfmt"},
sh = { "shfmt" },
go = { "gofmt" },
nix = { "alejandra" },
sh = { "shfmt" },
terraform = { "terraform" },
yaml = {"yamlfmt"},
["_"] = { "trim_whitespace" },
}
})