pkgsets/nvim: update lsp config to use opts
This commit is contained in:
parent
d8f29e12b5
commit
378da9479f
17 changed files with 355 additions and 339 deletions
|
@ -5,18 +5,17 @@
|
|||
...
|
||||
}:
|
||||
|
||||
lib.optionalString (lib.elem "nvim::lsp::c" config.machine.pkgs) # lua
|
||||
''
|
||||
lspconfig.ccls.setup {
|
||||
cmd = { "${pkgs.ccls}/bin/ccls" },
|
||||
init_options = {
|
||||
compilationDatabaseDirectory = "build";
|
||||
index = {
|
||||
threads = 0;
|
||||
};
|
||||
clang = {
|
||||
excludeArgs = { "-frounding-math"} ;
|
||||
};
|
||||
}
|
||||
}
|
||||
''
|
||||
lib.optionalAttrs (lib.elem "nvim::lsp::c" config.machine.pkgs) {
|
||||
ccls = {
|
||||
cmd = [ "${pkgs.ccls}/bin/ccls" ];
|
||||
init_options = {
|
||||
# compilationDatabaseDirectory = "build";
|
||||
index = {
|
||||
threads = 0;
|
||||
};
|
||||
clang = {
|
||||
excludeArgs = [ "-frounding-math" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue