File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 72
72
--- @field enabled_providers ? string[] | fun ( ctx ?: blink.cmp.Context ): string[]
73
73
---
74
74
--- @class blink.cmp.SourceProviderConfig
75
- --- @field name string
75
+ --- @field name ? string
76
76
--- @field module ? string
77
77
--- @field enabled ? boolean | fun ( ctx ?: blink.cmp.Context ): boolean
78
78
--- @field opts ? table
Original file line number Diff line number Diff line change 1
1
--- @class blink.cmp.Draw
2
2
--- @field align_to_component ? string | ' none' Align the window to the component with the given name
3
- --- @field padding number | number[] Padding on the left and right of the grid
4
- --- @field gap number Gap between columns
5
- --- @field columns { [number] : string , gap ?: number } [] Components to render , grouped by column
6
- --- @field components table<string , blink.cmp.DrawComponent> Component definitions
3
+ --- @field padding ? number | number[] Padding on the left and right of the grid
4
+ --- @field gap ? number Gap between columns
5
+ --- @field columns ? { [number] : string , gap ?: number } [] Components to render , grouped by column
6
+ --- @field components ? table<string , blink.cmp.DrawComponent> Component definitions
7
7
---
8
8
--- @class blink.cmp.DrawHighlight
9
9
--- @field [ number] number Start and end index of the highlight
19
19
--- @class blink.cmp.DrawComponent
20
20
--- @field width ? blink.cmp.DrawWidth
21
21
--- @field ellipsis ? boolean Whether to add an ellipsis when truncating the text
22
- --- @field text fun ( ctx : blink.cmp.DrawItemContext ): string ? Renders the text of the component
22
+ --- @field text ? fun ( ctx : blink.cmp.DrawItemContext ): string ? Renders the text of the component
23
23
--- @field highlight ? string | fun ( ctx : blink.cmp.DrawItemContext , text : string ): string | blink.cmp.DrawHighlight[] Renders the highlights of the component
You can’t perform that action at this time.
0 commit comments