nix-community.nixvim/tests/test-sources/plugins/lsp/language-servers/nil-ls.nix
2024-06-03 20:56:37 +01:00

33 lines
662 B
Nix

{
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";
};
};
};
};
};
};
}