82
82
--- @field order " top_down" | " bottom_up"
83
83
--- @field direction_priority (" n" | " s" )[]
84
84
--- @field preselect boolean
85
- --- @field winhighlight string | nil
85
+ --- @field winhighlight string
86
+ --- @field scrolloff number
86
87
87
88
--- @class blink.cmp.DocumentationDirectionPriorityConfig
88
89
--- @field autocomplete_north (" n" | " s" | " e" | " w" )[]
89
90
--- @field autocomplete_south (" n" | " s" | " e" | " w" )[]
90
91
---
91
- --- @alias blink.cmp.WindowBorder ' single' | ' double' | ' rounded' | ' solid' | ' shadow' | ' padded' | ' none'
92
+ --- @alias blink.cmp.WindowBorder ' single' | ' double' | ' rounded' | ' solid' | ' shadow' | ' padded' | ' none' | string[]
92
93
---
93
94
--- @class blink.cmp.DocumentationConfig
94
95
--- @field min_width number
99
100
--- @field auto_show boolean
100
101
--- @field auto_show_delay_ms number Delay before showing the documentation window
101
102
--- @field update_delay_ms number Delay before updating the documentation window
102
- --- @field winhighlight string | nil
103
+ --- @field winhighlight string
103
104
104
105
--- @class blink.cmp.SignatureHelpConfig
105
106
--- @field min_width number
106
107
--- @field max_width number
107
108
--- @field max_height number
108
109
--- @field border blink.cmp.WindowBorder
110
+ --- @field winhighlight string
109
111
110
112
--- @class blink.cmp.Config
111
113
--- @field keymap blink.cmp.KeymapConfig
@@ -210,6 +212,8 @@ local config = {
210
212
max_width = 60 ,
211
213
max_height = 10 ,
212
214
border = ' none' ,
215
+ winhighlight = ' Normal:BlinkCmpMenu,FloatBorder:BlinkCmpMenuBorder,CursorLine:BlinkCmpMenuSelection,Search:None' ,
216
+ scrolloff = 2 ,
213
217
-- todo: implement
214
218
order = ' top_down' ,
215
219
-- which directions to show the window,
@@ -223,6 +227,7 @@ local config = {
223
227
max_width = 60 ,
224
228
max_height = 20 ,
225
229
border = ' padded' ,
230
+ winhighlight = ' Normal:BlinkCmpDoc,FloatBorder:BlinkCmpDocBorder,CursorLine:BlinkCmpDocCursorLine,Search:None' ,
226
231
-- which directions to show the documentation window,
227
232
-- for each of the possible autocomplete window directions,
228
233
-- falling back to the next direction when there's not enough space
@@ -239,6 +244,7 @@ local config = {
239
244
max_width = 100 ,
240
245
max_height = 10 ,
241
246
border = ' padded' ,
247
+ winhighlight = ' Normal:BlinkCmpSignatureHelp,FloatBorder:BlinkCmpSignatureHelpBorder' ,
242
248
},
243
249
},
244
250
0 commit comments