blink.cmp icon indicating copy to clipboard operation
blink.cmp copied to clipboard

fix(super-tab): tab should respect manual selection

Open minusfive opened this issue 1 year ago • 0 comments

When using the super-tab preset and the completion.list.selection option is set to "manual", the custom <Tab> keymap doesn't respect it and still selects and accepts the first option.

Simply ensuring cmp.accept() is triggered when this option is set (instead of cmp.select_and_accept()) works because cmp.accept() internally checks whether a completion item is selected, and if it isn't it exits without executing anything.

minusfive avatar Dec 16 '24 19:12 minusfive