nix-community.nixvim/tests/test-sources/modules/lsp.nix
2025-05-01 00:36:41 +01:00

31 lines
616 B
Nix

{
example = {
lsp.servers = {
"*".settings = {
enable = true;
root_markers = [ ".git" ];
capabilities.textDocument.semanticTokens = {
multilineTokenSupport = true;
};
};
luals.enable = true;
clangd = {
enable = true;
settings = {
cmd = [
"clangd"
"--background-index"
];
root_markers = [
"compile_commands.json"
"compile_flags.txt"
];
filetypes = [
"c"
"cpp"
];
};
};
};
};
}