Skip to content

Commit 8b09c4a

Browse files
committed
plugins/clangd-extensions: remove inlay_hints option
The setting has been removed upstream: p00f/clangd_extensions.nvim@db28f29.
1 parent af4483c commit 8b09c4a

File tree

2 files changed

+1
-72
lines changed

2 files changed

+1
-72
lines changed

plugins/by-name/clangd-extensions/default.nix

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ config, lib, ... }:
22
let
33
inherit (lib.nixvim) defaultNullOpts;
4-
inherit (lib) types mapAttrs;
4+
inherit (lib) mapAttrs;
55
in
66
lib.nixvim.plugins.mkNeovimPlugin {
77
name = "clangd-extensions";
@@ -26,53 +26,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
2626
mkBorderOpt = defaultNullOpts.mkBorder "none" "clangd-extensions";
2727
in
2828
{
29-
inlay_hints = {
30-
inline = defaultNullOpts.mkBool true ''
31-
Show hints inline.
32-
'';
33-
34-
only_current_line = defaultNullOpts.mkBool false ''
35-
Only show inlay hints for the current line.
36-
'';
37-
38-
only_current_line_autocmd = defaultNullOpts.mkListOf types.str [ "CursorHold" ] ''
39-
Event which triggers a refresh of the inlay hints. You can make this
40-
`[ "CursorMoved" ]` or `[ "CursorMoved" "CursorMovedI" ]` but not that this may cause
41-
higher CPU usage. This option is only respected when `only_current_line`
42-
is true.
43-
'';
44-
45-
show_parameter_hints = defaultNullOpts.mkBool true ''
46-
Whether to show parameter hints with the inlay hints or not.
47-
'';
48-
49-
parameter_hints_prefix = defaultNullOpts.mkStr "<- " "Prefix for parameter hints.";
50-
51-
other_hints_prefix = defaultNullOpts.mkStr "=> " ''
52-
Prefix for all the other hints (type, chaining).
53-
'';
54-
55-
max_len_align = defaultNullOpts.mkBool false ''
56-
Whether to align to the length of the longest line in the file.
57-
'';
58-
59-
max_len_align_padding = defaultNullOpts.mkPositiveInt 1 ''
60-
Padding from the left if max_len_align is true.
61-
'';
62-
63-
right_align = defaultNullOpts.mkBool false ''
64-
Whether to align to the extreme right or not.
65-
'';
66-
67-
right_align_padding = defaultNullOpts.mkPositiveInt 7 ''
68-
Padding from the right if `right_align` is true.
69-
'';
70-
71-
highlight = defaultNullOpts.mkStr "Comment" "The color of the hints.";
72-
73-
priority = defaultNullOpts.mkUnsignedInt 100 "The highlight group priority for extmark.";
74-
};
75-
7629
ast = {
7730
role_icons =
7831
mapAttrs (name: default: defaultNullOpts.mkStr default "Icon for the `${name}` role.")
@@ -151,9 +104,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
151104
};
152105

153106
settingsExample = {
154-
inlay_hints = {
155-
inline = true;
156-
};
157107
ast = {
158108
role_icons = {
159109
type = "";

tests/test-sources/plugins/by-name/clangd-extensions/default.nix

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,6 @@
1616
enableOffsetEncodingWorkaround = true;
1717

1818
settings = {
19-
inlay_hints = {
20-
inline = true;
21-
only_current_line = false;
22-
only_current_line_autocmd = [ "CursorHold" ];
23-
show_parameter_hints = true;
24-
parameter_hints_prefix = "<- ";
25-
other_hints_prefix = "=> ";
26-
max_len_align = false;
27-
max_len_align_padding = 1;
28-
right_align = false;
29-
right_align_padding = 7;
30-
highlight = "Comment";
31-
priority = 100;
32-
};
3319
ast = {
3420
role_icons = {
3521
type = "🄣";
@@ -70,13 +56,6 @@
7056
enable = true;
7157

7258
settings = {
73-
inlay_hints = {
74-
inline = false;
75-
only_current_line_autocmd = [
76-
"CursorMoved"
77-
"CursorMovedI"
78-
];
79-
};
8059
ast = {
8160
role_icons = {
8261
type = "";

0 commit comments

Comments
 (0)