|
19 | 19 | ---
|
20 | 20 | --- @class blink.cmp.SourceProviderConfig
|
21 | 21 | --- @field [1] string
|
22 |
| ---- @field fallback_for string[] | nil |
23 | 22 | --- @field keyword_length number | nil
|
24 | 23 | --- @field score_offset number | nil
|
25 | 24 | --- @field deduplicate blink.cmp.DeduplicateConfig | nil
|
26 | 25 | --- @field trigger_characters string[] | nil
|
27 |
| ---- @field override blink.cmp.OverrideConfig | nil |
28 | 26 | --- @field opts table | nil
|
29 | 27 | ---
|
30 | 28 | --- @class blink.cmp.DeduplicateConfig
|
31 | 29 | --- @field enabled boolean
|
32 | 30 | --- @field priority number
|
33 |
| ---- |
34 |
| ---- @class blink.cmp.OverrideConfig |
35 |
| ---- @field get_trigger_characters (fun(orig_fn: fun(): string[]): string[]) | nil |
36 |
| ---- @field completions (fun(context: blink.cmp.ShowContext, callback: fun(items: blink.cmp.CompletionItem[]), orig_fn: (fun(context: blink.cmp.ShowContext, callback: fun(items: blink.cmp.CompletionItem[]))): nil) | nil) | nil |
37 |
| ---- @field filter_completions (fun(context: blink.cmp.ShowContext, source_responses: table<string, blink.cmp.CompletionResponse>, orig_fn: (fun(context: blink.cmp.ShowContext, source_responses: table<string, blink.cmp.CompletionResponse>): blink.cmp.CompletionItem[]) | nil): blink.cmp.CompletionItem[]) | nil |
38 |
| ---- @field resolve (fun(item: blink.cmp.CompletionItem, callback: fun(resolved_item: lsp.CompletionItem | nil), orig_fn: (fun(item: blink.cmp.CompletionItem, callback: fun(resolved_item: lsp.CompletionItem | nil))) | nil): (fun(): nil) | nil) | nil |
39 |
| ---- @field cancel_completions (fun(orig_fn: fun() | nil): nil) | nil |
40 |
| ---- |
41 |
| ---- @class blink.cmp.SourceOverrideConfig |
42 |
| ---- @field completions fun(context: blink.cmp.ShowContext, callback: fun(items: blink.cmp.CompletionItem[]), orig_fn: fun(context: blink.cmp.ShowContext, callback: fun(items: blink.cmp.CompletionItem[]))) |
43 |
| ---- @field resolve fun(orig_fn: fun(item: blink.cmp.CompletionItem, callback: fun(resolved_item: blink.cmp.CompletionItem | nil)), item: blink.cmp.CompletionItem, callback: fun(resolved_item: blink.cmp.CompletionItem | nil)) |
44 | 31 |
|
45 | 32 | --- @class blink.cmp.FuzzyConfig
|
46 | 33 | --- @field use_frecency boolean
|
@@ -115,8 +102,8 @@ local config = {
|
115 | 102 | sources = {
|
116 | 103 | providers = {
|
117 | 104 | { 'blink.cmp.sources.lsp' },
|
118 |
| - { 'blink.cmp.sources.buffer' }, |
119 |
| - { 'blink.cmp.sources.snippets' }, |
| 105 | + { 'blink.cmp.sources.buffer', score_offset = -9 }, |
| 106 | + { 'blink.cmp.sources.snippets', score_offset = -3 }, |
120 | 107 | },
|
121 | 108 | },
|
122 | 109 | windows = {
|
|
0 commit comments