added formatter for nix, nixd was not working.

Welcome to the config, conform.nvim!
This commit is contained in:
Gabe Venberg 2026-03-15 18:05:50 +01:00
parent 46208d9102
commit 35fb7ffcb1
4 changed files with 34 additions and 45 deletions

View file

@ -1,27 +0,0 @@
return {
{
"nixd",
enabled = nixInfo.isNix, -- mason doesn't have nixd
for_cat = "nix",
lsp = {
filetypes = { "nix" },
settings = {
nixd = {
nixpkgs = {
expr = [[import <nixpkgs> {}]],
},
options = {
},
formatting = {
command = { "nixfmt" }
},
diagnostic = {
suppress = {
"sema-escaping-with"
}
}
}
},
},
},
}