modules/lsp: init

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
This commit is contained in:
Gaetan Lepage 2025-04-07 10:42:07 +02:00
parent 9e0d2e4bed
commit 70c9b3b890
3 changed files with 182 additions and 0 deletions

View file

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