fix(blink): allow user to overwrite <Tab> mapping

This commit is contained in:
Iordanis Petkakis 2024-12-15 19:21:35 +02:00
parent ef9102677f
commit deca4b250c

View file

@ -102,7 +102,7 @@ return {
end end
-- fix super-tab completion -- fix super-tab completion
if opts.keymap.preset == "super-tab" then if opts.keymap.preset == "super-tab" and not opts.keymap["<Tab>"] then
opts.keymap["<Tab>"] = { opts.keymap["<Tab>"] = {
function(cmp) function(cmp)
if cmp.snippet_active() then if cmp.snippet_active() then