nixos/pkgsets/nvim/lsp/c.nix
2024-12-21 23:23:16 +01:00

22 lines
399 B
Nix

{
lib,
config,
pkgs,
...
}:
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"} ;
};
}
}
''