|
11 | 11 | --- @class blink.cmp.Source
|
12 | 12 | --- @field new fun(config: blink.cmp.SourceProviderConfig): blink.cmp.Source
|
13 | 13 | --- @field enabled? fun(self: blink.cmp.Source, context: blink.cmp.Context): boolean
|
14 |
| ---- @field get_trigger_characters? (fun(self: blink.cmp.Source): string[]) | nil |
15 |
| ---- @field get_completions? fun(self: blink.cmp.Source, context: blink.cmp.Context, callback: fun(response: blink.cmp.CompletionResponse | nil)): (fun(): nil) | nil |
16 |
| ---- @field filter_completions? (fun(self: blink.cmp.Source, response: blink.cmp.CompletionResponse): blink.cmp.CompletionItem[]) | nil |
17 |
| ---- @field should_show_completions? (fun(self: blink.cmp.Source, context: blink.cmp.Context, response: blink.cmp.CompletionResponse): boolean) | nil |
18 |
| ---- @field resolve? (fun(self: blink.cmp.Source, item: blink.cmp.CompletionItem, callback: fun(resolved_item: lsp.CompletionItem | nil)): ((fun(): nil) | nil)) | nil |
| 14 | +--- @field get_trigger_characters? fun(self: blink.cmp.Source): string[] |
| 15 | +--- @field get_completions? fun(self: blink.cmp.Source, context: blink.cmp.Context, callback: fun(response?: blink.cmp.CompletionResponse)): (fun(): nil) | nil |
| 16 | +--- @field filter_completions? fun(self: blink.cmp.Source, response: blink.cmp.CompletionResponse): blink.cmp.CompletionItem[] |
| 17 | +--- @field should_show_completions? fun(self: blink.cmp.Source, context: blink.cmp.Context, response: blink.cmp.CompletionResponse): boolean |
| 18 | +--- @field resolve? fun(self: blink.cmp.Source, item: blink.cmp.CompletionItem, callback: fun(resolved_item?: lsp.CompletionItem)): ((fun(): nil) | nil) |
19 | 19 | --- @field get_signature_help_trigger_characters? fun(self: blink.cmp.Source): string[]
|
20 | 20 | --- @field get_signature_help? fun(self: blink.cmp.Source, context: blink.cmp.SignatureHelpContext, callback: fun(signature_help: lsp.SignatureHelp | nil)): (fun(): nil) | nil
|
21 |
| ---- @field reload? (fun(self: blink.cmp.Source): nil) | nil |
| 21 | +--- @field reload? fun(self: blink.cmp.Source): nil |
22 | 22 |
|
23 | 23 | --- @class blink.cmp.SourceOverride
|
24 | 24 | --- @field enabled? fun(self: blink.cmp.Source, context: blink.cmp.Context): boolean
|
25 | 25 | --- @field get_trigger_characters? fun(self: blink.cmp.Source): string[]
|
26 |
| ---- @field get_completions? fun(self: blink.cmp.Source, context: blink.cmp.Context): blink.cmp.Task |
| 26 | +--- @field get_completions? fun(self: blink.cmp.Source, context: blink.cmp.Context, callback: fun(response: blink.cmp.CompletionResponse | nil)): (fun(): nil) | nil |
27 | 27 | --- @field filter_completions? fun(self: blink.cmp.Source, response: blink.cmp.CompletionResponse): blink.cmp.CompletionItem[]
|
28 | 28 | --- @field should_show_completions? fun(self: blink.cmp.Source, context: blink.cmp.Context, response: blink.cmp.CompletionResponse): boolean
|
29 |
| ---- @field resolve? fun(self: blink.cmp.Source, item: blink.cmp.CompletionItem): blink.cmp.Task |
| 29 | +--- @field resolve? fun(self: blink.cmp.Source, item: blink.cmp.CompletionItem, callback: fun(resolved_item: lsp.CompletionItem | nil)): ((fun(): nil) | nil) |
30 | 30 | --- @field get_signature_help_trigger_characters? fun(self: blink.cmp.Source): string[]
|
31 |
| ---- @field get_signature_help? fun(self: blink.cmp.Source, context: blink.cmp.SignatureHelpContext): blink.cmp.Task |
32 |
| ---- @field reload? (fun(self: blink.cmp.Source): nil) | nil |
| 31 | +--- @field get_signature_help? fun(self: blink.cmp.Source, context: blink.cmp.SignatureHelpContext, callback: fun(signature_help: lsp.SignatureHelp | nil)): (fun(): nil) | nil |
| 32 | +--- @field reload? fun(self: blink.cmp.Source): nil |
0 commit comments