plugins/clangd-extensions: fix options following upstream changes + test

This commit is contained in:
Gaetan Lepage 2023-08-22 10:21:20 +02:00 committed by Gaétan Lepage
parent ebb8e479d2
commit 00016841c9
2 changed files with 267 additions and 144 deletions

View file

@ -0,0 +1,62 @@
{
empty = {
plugins = {
lsp.enable = true;
clangd-extensions.enable = true;
};
};
default = {
plugins = {
lsp.enable = true;
clangd-extensions = {
enable = true;
enableOffsetEncodingWorkaround = true;
inlayHints = {
inline = ''vim.fn.has("nvim-0.10") == 1'';
onlyCurrentLine = false;
onlyCurrentLineAutocmd = "CursorHold";
showParameterHints = true;
parameterHintsPrefix = "<- ";
otherHintsPrefix = "=> ";
maxLenAlign = false;
maxLenAlignPadding = 1;
rightAlign = false;
rightAlignPadding = 7;
highlight = "Comment";
priority = 100;
};
ast = {
roleIcons = {
type = "🄣";
declaration = "🄓";
expression = "🄔";
statement = ";";
specifier = "🄢";
templateArgument = "🆃";
};
kindIcons = {
compound = "🄲";
recovery = "🅁";
translationUnit = "🅄";
packExpansion = "🄿";
templateTypeParm = "🅃";
templateTemplateParm = "🅃";
templateParamObject = "🅃";
};
highlights = {
detail = "Comment";
};
};
memoryUsage = {
border = "none";
};
symbolInfo = {
border = "none";
};
};
};
};
}