mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
refactor(blink): use upstream <Tab> keymap fn
This commit is contained in:
parent
2cf3d234bf
commit
91e0b57727
1 changed files with 1 additions and 7 deletions
|
|
@ -109,13 +109,7 @@ return {
|
||||||
if not opts.keymap["<Tab>"] then
|
if not opts.keymap["<Tab>"] then
|
||||||
if opts.keymap.preset == "super-tab" then -- super-tab
|
if opts.keymap.preset == "super-tab" then -- super-tab
|
||||||
opts.keymap["<Tab>"] = {
|
opts.keymap["<Tab>"] = {
|
||||||
function(cmp)
|
require("blink.cmp.keymap.presets")["super-tab"]["<Tab>"][1],
|
||||||
if cmp.snippet_active() then
|
|
||||||
return cmp.accept()
|
|
||||||
else
|
|
||||||
return cmp.select_and_accept()
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
LazyVim.cmp.map({ "snippet_forward", "ai_accept" }),
|
LazyVim.cmp.map({ "snippet_forward", "ai_accept" }),
|
||||||
"fallback",
|
"fallback",
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue