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