mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/clangd-extensions: remove inlay_hints option
The setting has been removed upstream:
db28f29be9
.
This commit is contained in:
parent
af4483c025
commit
8b09c4a829
2 changed files with 1 additions and 72 deletions
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
let
|
let
|
||||||
inherit (lib.nixvim) defaultNullOpts;
|
inherit (lib.nixvim) defaultNullOpts;
|
||||||
inherit (lib) types mapAttrs;
|
inherit (lib) mapAttrs;
|
||||||
in
|
in
|
||||||
lib.nixvim.plugins.mkNeovimPlugin {
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
name = "clangd-extensions";
|
name = "clangd-extensions";
|
||||||
|
@ -26,53 +26,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
mkBorderOpt = defaultNullOpts.mkBorder "none" "clangd-extensions";
|
mkBorderOpt = defaultNullOpts.mkBorder "none" "clangd-extensions";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
inlay_hints = {
|
|
||||||
inline = defaultNullOpts.mkBool true ''
|
|
||||||
Show hints inline.
|
|
||||||
'';
|
|
||||||
|
|
||||||
only_current_line = defaultNullOpts.mkBool false ''
|
|
||||||
Only show inlay hints for the current line.
|
|
||||||
'';
|
|
||||||
|
|
||||||
only_current_line_autocmd = defaultNullOpts.mkListOf types.str [ "CursorHold" ] ''
|
|
||||||
Event which triggers a refresh of the inlay hints. You can make this
|
|
||||||
`[ "CursorMoved" ]` or `[ "CursorMoved" "CursorMovedI" ]` but not that this may cause
|
|
||||||
higher CPU usage. This option is only respected when `only_current_line`
|
|
||||||
is true.
|
|
||||||
'';
|
|
||||||
|
|
||||||
show_parameter_hints = defaultNullOpts.mkBool true ''
|
|
||||||
Whether to show parameter hints with the inlay hints or not.
|
|
||||||
'';
|
|
||||||
|
|
||||||
parameter_hints_prefix = defaultNullOpts.mkStr "<- " "Prefix for parameter hints.";
|
|
||||||
|
|
||||||
other_hints_prefix = defaultNullOpts.mkStr "=> " ''
|
|
||||||
Prefix for all the other hints (type, chaining).
|
|
||||||
'';
|
|
||||||
|
|
||||||
max_len_align = defaultNullOpts.mkBool false ''
|
|
||||||
Whether to align to the length of the longest line in the file.
|
|
||||||
'';
|
|
||||||
|
|
||||||
max_len_align_padding = defaultNullOpts.mkPositiveInt 1 ''
|
|
||||||
Padding from the left if max_len_align is true.
|
|
||||||
'';
|
|
||||||
|
|
||||||
right_align = defaultNullOpts.mkBool false ''
|
|
||||||
Whether to align to the extreme right or not.
|
|
||||||
'';
|
|
||||||
|
|
||||||
right_align_padding = defaultNullOpts.mkPositiveInt 7 ''
|
|
||||||
Padding from the right if `right_align` is true.
|
|
||||||
'';
|
|
||||||
|
|
||||||
highlight = defaultNullOpts.mkStr "Comment" "The color of the hints.";
|
|
||||||
|
|
||||||
priority = defaultNullOpts.mkUnsignedInt 100 "The highlight group priority for extmark.";
|
|
||||||
};
|
|
||||||
|
|
||||||
ast = {
|
ast = {
|
||||||
role_icons =
|
role_icons =
|
||||||
mapAttrs (name: default: defaultNullOpts.mkStr default "Icon for the `${name}` role.")
|
mapAttrs (name: default: defaultNullOpts.mkStr default "Icon for the `${name}` role.")
|
||||||
|
@ -151,9 +104,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
};
|
};
|
||||||
|
|
||||||
settingsExample = {
|
settingsExample = {
|
||||||
inlay_hints = {
|
|
||||||
inline = true;
|
|
||||||
};
|
|
||||||
ast = {
|
ast = {
|
||||||
role_icons = {
|
role_icons = {
|
||||||
type = "";
|
type = "";
|
||||||
|
|
|
@ -16,20 +16,6 @@
|
||||||
enableOffsetEncodingWorkaround = true;
|
enableOffsetEncodingWorkaround = true;
|
||||||
|
|
||||||
settings = {
|
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;
|
|
||||||
};
|
|
||||||
ast = {
|
ast = {
|
||||||
role_icons = {
|
role_icons = {
|
||||||
type = "🄣";
|
type = "🄣";
|
||||||
|
@ -70,13 +56,6 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
inlay_hints = {
|
|
||||||
inline = false;
|
|
||||||
only_current_line_autocmd = [
|
|
||||||
"CursorMoved"
|
|
||||||
"CursorMovedI"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
ast = {
|
ast = {
|
||||||
role_icons = {
|
role_icons = {
|
||||||
type = "";
|
type = "";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue