mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-03 01:25:22 +02:00
modules/lsp: init
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
This commit is contained in:
parent
9e0d2e4bed
commit
70c9b3b890
3 changed files with 182 additions and 0 deletions
30
tests/test-sources/modules/lsp.nix
Normal file
30
tests/test-sources/modules/lsp.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue