mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 09:14:31 +02:00
plugins/lsp: add ccls language server
This commit is contained in:
parent
b809855174
commit
24b145ff35
4 changed files with 331 additions and 1 deletions
48
tests/test-sources/plugins/lsp/ccls.nix
Normal file
48
tests/test-sources/plugins/lsp/ccls.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
example = {
|
||||
plugins.lsp = {
|
||||
enable = true;
|
||||
|
||||
servers.ccls = {
|
||||
enable = true;
|
||||
|
||||
initOptions = {
|
||||
cache = {
|
||||
directory = ".ccls-cache";
|
||||
format = "binary";
|
||||
retainInMemory = 1;
|
||||
};
|
||||
clang = {
|
||||
extraArgs = [];
|
||||
excludeArgs = ["-frounding-math"];
|
||||
pathMappings = ["/remote/>/host/"];
|
||||
resourceDir = "";
|
||||
};
|
||||
client = {
|
||||
snippetSupport = true;
|
||||
};
|
||||
completion = {
|
||||
placeholder = false;
|
||||
detailedLabel = true;
|
||||
filterAndSort = true;
|
||||
};
|
||||
compilationDatabaseDirectory = "out/release";
|
||||
diagnostics = {
|
||||
onOpen = 0;
|
||||
onChange = 1000;
|
||||
onSave = 0;
|
||||
};
|
||||
index = {
|
||||
threads = 0;
|
||||
comments = 2;
|
||||
multiVersion = 0;
|
||||
multiVersionBlacklist = ["^/usr/include"];
|
||||
initialBlacklist = ["."];
|
||||
onChange = false;
|
||||
trackDependency = 2;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -67,6 +67,7 @@
|
|||
servers = {
|
||||
astro.enable = true;
|
||||
bashls.enable = true;
|
||||
ccls.enable = true;
|
||||
clangd.enable = true;
|
||||
clojure-lsp.enable = true;
|
||||
cssls.enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue