plugins/lsp/language-servers/nil_ls: improve settings options

This commit is contained in:
Austin Horstman 2024-05-23 19:41:41 -05:00 committed by Gaétan Lepage
parent 9697385115
commit ba293d3640
3 changed files with 98 additions and 35 deletions

View file

@ -0,0 +1,33 @@
{
example = {
plugins.lsp = {
enable = true;
servers.nil_ls = {
enable = true;
settings = {
diagnostics = {
ignored = [
"unused_binding"
"unused_with"
];
excludedFiles = [ "Cargo.nix" ];
};
formatting = {
command = [ "nixfmt" ];
};
nix = {
binary = "nix";
maxMemoryMB = 2048;
flake = {
autoArchive = true;
autoEvalInputs = false;
nixpkgsInputName = "nixpkgs";
};
};
};
};
};
};
}