refactor(blink): use upstream <Tab> keymap fn

This commit is contained in:
Jorge Villalobos 2024-12-16 13:51:48 -05:00
parent 2cf3d234bf
commit 91e0b57727
No known key found for this signature in database
GPG key ID: 927677DC8C99CD04

View file

@ -109,13 +109,7 @@ return {
if not opts.keymap["<Tab>"] then
if opts.keymap.preset == "super-tab" then -- super-tab
opts.keymap["<Tab>"] = {
function(cmp)
if cmp.snippet_active() then
return cmp.accept()
else
return cmp.select_and_accept()
end
end,
require("blink.cmp.keymap.presets")["super-tab"]["<Tab>"][1],
LazyVim.cmp.map({ "snippet_forward", "ai_accept" }),
"fallback",
}