mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
Adapt warnings, default settings, and tests to the new lsp module. Also change the previous warning, which I think should target the clangd server directly, and just not `plugins.lsp`, since the clangd server is necessary for clangd-extensions to function.
82 lines
1.7 KiB
Nix
82 lines
1.7 KiB
Nix
{
|
|
empty = {
|
|
lsp.servers.clangd.enable = true;
|
|
|
|
plugins = {
|
|
clangd-extensions.enable = true;
|
|
};
|
|
};
|
|
|
|
default = {
|
|
lsp.servers.clangd.enable = true;
|
|
|
|
plugins = {
|
|
clangd-extensions = {
|
|
enable = true;
|
|
|
|
enableOffsetEncodingWorkaround = true;
|
|
|
|
settings = {
|
|
ast = {
|
|
role_icons = {
|
|
type = "🄣";
|
|
declaration = "🄓";
|
|
expression = "🄔";
|
|
statement = ";";
|
|
specifier = "🄢";
|
|
"template argument" = "🆃";
|
|
};
|
|
kind_icons = {
|
|
Compound = "🄲";
|
|
Recovery = "🅁";
|
|
TranslationUnit = "🅄";
|
|
PackExpansion = "🄿";
|
|
TemplateTypeParm = "🅃";
|
|
TemplateTemplateParm = "🅃";
|
|
TemplateParamObject = "🅃";
|
|
};
|
|
highlights = {
|
|
detail = "Comment";
|
|
};
|
|
};
|
|
memory_usage = {
|
|
border = "none";
|
|
};
|
|
symbol_info = {
|
|
border = "none";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
example = {
|
|
lsp.servers.clangd.enable = true;
|
|
|
|
plugins = {
|
|
clangd-extensions = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
ast = {
|
|
role_icons = {
|
|
type = "";
|
|
declaration = "";
|
|
expression = "";
|
|
specifier = "";
|
|
statement = "";
|
|
"template argument" = "";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
emptyOld = {
|
|
plugins = {
|
|
lsp.enable = true;
|
|
clangd-extensions.enable = true;
|
|
};
|
|
};
|
|
}
|