nix-community.nixvim/tests/test-sources/plugins/by-name/clangd-extensions/default.nix
Johan Larsson 8b3107ad6f plugins/clangd-extensions: adapt to new lsp module
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.
2025-05-03 17:21:30 +01:00

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;
};
};
}