Skip to content

Commit e328bde

Browse files
committed
fix: mark all config properties as optional
Closes #370
1 parent 4cc0e2b commit e328bde

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lua/blink/cmp/config.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
--- @field enabled_providers? string[] | fun(ctx?: blink.cmp.Context): string[]
7373
---
7474
--- @class blink.cmp.SourceProviderConfig
75-
--- @field name string
75+
--- @field name? string
7676
--- @field module? string
7777
--- @field enabled? boolean | fun(ctx?: blink.cmp.Context): boolean
7878
--- @field opts? table

lua/blink/cmp/windows/render/types.lua

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
--- @class blink.cmp.Draw
22
--- @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
77
---
88
--- @class blink.cmp.DrawHighlight
99
--- @field [number] number Start and end index of the highlight
@@ -19,5 +19,5 @@
1919
--- @class blink.cmp.DrawComponent
2020
--- @field width? blink.cmp.DrawWidth
2121
--- @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
2323
--- @field highlight? string | fun(ctx: blink.cmp.DrawItemContext, text: string): string | blink.cmp.DrawHighlight[] Renders the highlights of the component

0 commit comments

Comments
 (0)