1
1
{ config , lib , ... } :
2
2
let
3
3
inherit ( lib . nixvim ) defaultNullOpts ;
4
- inherit ( lib ) types mapAttrs ;
4
+ inherit ( lib ) mapAttrs ;
5
5
in
6
6
lib . nixvim . plugins . mkNeovimPlugin {
7
7
name = "clangd-extensions" ;
@@ -26,53 +26,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
26
26
mkBorderOpt = defaultNullOpts . mkBorder "none" "clangd-extensions" ;
27
27
in
28
28
{
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
-
76
29
ast = {
77
30
role_icons =
78
31
mapAttrs ( name : default : defaultNullOpts . mkStr default "Icon for the `${ name } ` role." )
@@ -151,9 +104,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
151
104
} ;
152
105
153
106
settingsExample = {
154
- inlay_hints = {
155
- inline = true ;
156
- } ;
157
107
ast = {
158
108
role_icons = {
159
109
type = "" ;
0 commit comments