|
11 | 11 | --- @field snippet_backward string | string[]
|
12 | 12 |
|
13 | 13 | --- @class blink.cmp.AcceptConfig
|
| 14 | +--- @field create_undo_point boolean Create an undo point when accepting a completion item |
14 | 15 | --- @field auto_brackets blink.cmp.AutoBracketsConfig
|
15 | 16 |
|
16 | 17 | --- @class blink.cmp.AutoBracketsConfig
|
|
33 | 34 | --- @field keyword_regex string
|
34 | 35 | --- @field blocked_trigger_characters string[]
|
35 | 36 | --- @field show_on_insert_on_trigger_character boolean When true, will show the completion window when the cursor comes after a trigger character when entering insert mode
|
| 37 | +--- @field show_on_insert_blocked_trigger_characters string[] List of additional trigger characters that won't trigger the completion window when the cursor comes after a trigger character when entering insert mode |
36 | 38 | ---
|
37 | 39 | --- @class blink.cmp.SignatureHelpTriggerConfig
|
38 | 40 | --- @field enabled boolean
|
@@ -142,6 +144,7 @@ local config = {
|
142 | 144 | },
|
143 | 145 |
|
144 | 146 | accept = {
|
| 147 | + create_undo_point = true, |
145 | 148 | auto_brackets = {
|
146 | 149 | enabled = false,
|
147 | 150 | default_brackets = { '(', ')' },
|
@@ -172,6 +175,8 @@ local config = {
|
172 | 175 | blocked_trigger_characters = { ' ', '\n', '\t' },
|
173 | 176 | -- when true, will show the completion window when the cursor comes after a trigger character when entering insert mode
|
174 | 177 | show_on_insert_on_trigger_character = true,
|
| 178 | + -- list of additional trigger characters that won't trigger the completion window when the cursor comes after a trigger character when entering insert mode |
| 179 | + show_on_insert_blocked_trigger_characters = { "'", '"' }, |
175 | 180 | },
|
176 | 181 |
|
177 | 182 | signature_help = {
|
@@ -201,7 +206,7 @@ local config = {
|
201 | 206 | {
|
202 | 207 | { 'blink.cmp.sources.lsp' },
|
203 | 208 | { 'blink.cmp.sources.path' },
|
204 |
| - { 'blink.cmp.sources.snippets', score_offset = -3 }, |
| 209 | + { 'blink.cmp.sources.snippets', score_offset = -2 }, |
205 | 210 | },
|
206 | 211 | { { 'blink.cmp.sources.buffer' } },
|
207 | 212 | },
|
|
0 commit comments