mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-12 10:14:31 +02:00
plugins/clangd-extensions: fix options following upstream changes + test
This commit is contained in:
parent
ebb8e479d2
commit
00016841c9
2 changed files with 267 additions and 144 deletions
62
tests/test-sources/plugins/languages/clangd-extensions.nix
Normal file
62
tests/test-sources/plugins/languages/clangd-extensions.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue