|
44 | 44 | --- @field keyword_regex? string
|
45 | 45 | --- @field exclude_from_prefix_regex? string
|
46 | 46 | --- @field blocked_trigger_characters? string[]
|
| 47 | +--- @field show_on_accept_on_trigger_character? boolean When true, will show the completion window when the cursor comes after a trigger character after accepting an item |
47 | 48 | --- @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
|
48 |
| ---- @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 |
| 49 | +--- @field show_on_x_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/accepting an item |
49 | 50 | --- @field show_in_snippet? boolean When false, will not show the completion window when in a snippet
|
50 | 51 | ---
|
51 | 52 | --- @class blink.cmp.SignatureHelpTriggerConfig
|
@@ -253,10 +254,12 @@ local config = {
|
253 | 254 | -- however, some LSPs (*cough* tsserver *cough*) return characters that would essentially
|
254 | 255 | -- always show the window. We block these by default
|
255 | 256 | blocked_trigger_characters = { ' ', '\n', '\t' },
|
| 257 | + -- when true, will show the completion window when the cursor comes after a trigger character after accepting an item |
| 258 | + show_on_accept_on_trigger_character = true, |
256 | 259 | -- when true, will show the completion window when the cursor comes after a trigger character when entering insert mode
|
257 | 260 | show_on_insert_on_trigger_character = true,
|
258 |
| - -- list of additional trigger characters that won't trigger the completion window when the cursor comes after a trigger character when entering insert mode |
259 |
| - show_on_insert_blocked_trigger_characters = { "'", '"' }, |
| 261 | + -- list of additional trigger characters that won't trigger the completion window when the cursor comes after a trigger character when entering insert mode/accepting an item |
| 262 | + show_on_x_blocked_trigger_characters = { "'", '"', '(' }, |
260 | 263 | -- when false, will not show the completion window when in a snippet
|
261 | 264 | show_in_snippet = false,
|
262 | 265 | },
|
|
0 commit comments