From 3ef27bcd7ff2367c6053421d4a8981bedc33d53e Mon Sep 17 00:00:00 2001 From: Liam Dyer Date: Sun, 29 Dec 2024 15:03:15 -0500 Subject: [PATCH] fix: trigger context initial_kind resetting Closes #803 --- lua/blink/cmp/completion/trigger/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/blink/cmp/completion/trigger/init.lua b/lua/blink/cmp/completion/trigger/init.lua index 3745bb3d..decdca5c 100644 --- a/lua/blink/cmp/completion/trigger/init.lua +++ b/lua/blink/cmp/completion/trigger/init.lua @@ -197,8 +197,8 @@ function trigger.show(opts) trigger.context = context.new({ id = trigger.current_context_id, providers = providers, - initial_trigger_kind = trigger.context and trigger.context.trigger.kind or opts.trigger_kind, - initial_trigger_character = trigger.context and trigger.context.trigger.character or opts.trigger_character, + initial_trigger_kind = trigger.context and trigger.context.trigger.initial_kind or opts.trigger_kind, + initial_trigger_character = trigger.context and trigger.context.trigger.initial_character or opts.trigger_character, trigger_kind = opts.trigger_kind, trigger_character = opts.trigger_character, })