mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 09:18:38 +02:00
plugins/lsp/language-servers/nil_ls: improve settings options
This commit is contained in:
parent
9697385115
commit
ba293d3640
3 changed files with 98 additions and 35 deletions
33
tests/test-sources/plugins/lsp/language-servers/nil-ls.nix
Normal file
33
tests/test-sources/plugins/lsp/language-servers/nil-ls.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue