nixos/pkgsets/nvim/lsp/c.nix

23 lines
399 B
Nix
Raw Permalink Normal View History

2024-12-21 21:54:06 +01:00
{
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"} ;
};
}
}
''