Skip to content

Commit

Permalink
fix: mark all config properties as optional
Browse files Browse the repository at this point in the history
Closes #370
  • Loading branch information
Saghen committed Nov 24, 2024
1 parent 4cc0e2b commit e328bde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lua/blink/cmp/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
--- @field enabled_providers? string[] | fun(ctx?: blink.cmp.Context): string[]
---
--- @class blink.cmp.SourceProviderConfig
--- @field name string
--- @field name? string
--- @field module? string
--- @field enabled? boolean | fun(ctx?: blink.cmp.Context): boolean
--- @field opts? table
Expand Down
10 changes: 5 additions & 5 deletions lua/blink/cmp/windows/render/types.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
--- @class blink.cmp.Draw
--- @field align_to_component? string | 'none' Align the window to the component with the given name
--- @field padding number | number[] Padding on the left and right of the grid
--- @field gap number Gap between columns
--- @field columns { [number]: string, gap?: number }[] Components to render, grouped by column
--- @field components table<string, blink.cmp.DrawComponent> Component definitions
--- @field padding? number | number[] Padding on the left and right of the grid
--- @field gap? number Gap between columns
--- @field columns? { [number]: string, gap?: number }[] Components to render, grouped by column
--- @field components? table<string, blink.cmp.DrawComponent> Component definitions
---
--- @class blink.cmp.DrawHighlight
--- @field [number] number Start and end index of the highlight
Expand All @@ -19,5 +19,5 @@
--- @class blink.cmp.DrawComponent
--- @field width? blink.cmp.DrawWidth
--- @field ellipsis? boolean Whether to add an ellipsis when truncating the text
--- @field text fun(ctx: blink.cmp.DrawItemContext): string? Renders the text of the component
--- @field text? fun(ctx: blink.cmp.DrawItemContext): string? Renders the text of the component
--- @field highlight? string | fun(ctx: blink.cmp.DrawItemContext, text: string): string | blink.cmp.DrawHighlight[] Renders the highlights of the component

0 comments on commit e328bde

Please sign in to comment.