plugins/clangd-extensions: convert to mkNeovimPlugin

Wrap code in backticks

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

Surround right_aling with backticks

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

Set default of `inline` to true since we are on nvim >= 0.10

Document `highlights`

Use `mkUnsignedInt`

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

Improve warning

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

Readd deprecated options

Document icons

Rename removed-options.nix to deprecations.nix

Reformat raw string

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

Don't specify rawLua

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

Use mkDefault and make utf-16 workaround leaner

Don't wrap warning

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>

Change by -> after

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>

Document border options
This commit is contained in:
Johan Larsson 2025-01-08 22:53:24 +01:00 committed by nix-infra-bot
parent 56877b8f76
commit 35d6c12626
4 changed files with 333 additions and 290 deletions

View file

@ -14,47 +14,79 @@
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 = "🆃";
settings = {
inlay_hints = {
inline = true;
only_current_line = false;
only_current_line_autocmd = [ "CursorHold" ];
show_parameter_hints = true;
parameter_hints_prefix = "<- ";
other_hints_prefix = "=> ";
max_len_align = false;
max_len_align_padding = 1;
right_align = false;
right_align_padding = 7;
highlight = "Comment";
priority = 100;
};
kindIcons = {
compound = "🄲";
recovery = "🅁";
translationUnit = "🅄";
packExpansion = "🄿";
templateTypeParm = "🅃";
templateTemplateParm = "🅃";
templateParamObject = "🅃";
ast = {
role_icons = {
type = "🄣";
declaration = "🄓";
expression = "🄔";
statement = ";";
specifier = "🄢";
"template argument" = "🆃";
};
kind_icons = {
Compound = "🄲";
Recovery = "🅁";
TranslationUnit = "🅄";
PackExpansion = "🄿";
TemplateTypeParm = "🅃";
TemplateTemplateParm = "🅃";
TemplateParamObject = "🅃";
};
highlights = {
detail = "Comment";
};
};
highlights = {
detail = "Comment";
memory_usage = {
border = "none";
};
symbol_info = {
border = "none";
};
};
memoryUsage = {
border = "none";
};
symbolInfo = {
border = "none";
};
};
};
example = {
plugins = {
lsp.enable = true;
clangd-extensions = {
enable = true;
settings = {
inlay_hints = {
inline = false;
only_current_line_autocmd = [
"CursorMoved"
"CursorMovedI"
];
};
ast = {
role_icons = {
type = "";
declaration = "";
expression = "";
specifier = "";
statement = "";
"template argument" = "";
};
};
};
};
};