Stay in insert mode when snippet is active

This commit is contained in:
Dreaded_X 2025-05-29 21:56:03 +02:00
parent 244c1929a3
commit a96448db09
Signed by: Dreaded_X
GPG Key ID: 5A0CBFE3C3377FAA

View File

@ -24,7 +24,7 @@ return {
function(cmp) function(cmp)
if cmp.is_visible() then if cmp.is_visible() then
cmp.cancel() cmp.cancel()
if cmp.get_selected_item_idx() ~= nil then if cmp.get_selected_item_idx() ~= nil or cmp.snippet_active() then
return true return true
end end
end end