fix(blink): <Tab> should respect manual selection

This commit is contained in:
Jorge Villalobos 2024-12-16 11:57:08 -05:00
parent 2cf3d234bf
commit d9b4d954e2
No known key found for this signature in database
GPG key ID: 927677DC8C99CD04

View file

@ -110,7 +110,7 @@ return {
if opts.keymap.preset == "super-tab" then -- super-tab
opts.keymap["<Tab>"] = {
function(cmp)
if cmp.snippet_active() then
if cmp.snippet_active() or opts.completion.list.selection == "manual" then
return cmp.accept()
else
return cmp.select_and_accept()