nvim: cmap, blink cmp TAB

This commit is contained in:
js0ny 2025-11-26 12:55:07 +00:00
parent ab6da08e74
commit db68f9d460
2 changed files with 32 additions and 0 deletions

View file

@ -52,10 +52,24 @@ return {
cmdline = {
keymap = {
preset = "cmdline",
["<Tab>"] = {
function(cmp)
if cmp.snippet_active() then
return cmp.accept()
else
return cmp.select_and_accept()
end
end,
"show",
"fallback",
},
["<CR>"] = { "fallback" },
["<C-f>"] = { "select_and_accept", "fallback" },
["<C-a>"] = {},
},
completion = {
menu = { auto_show = true },
documentation = { auto_show = true, auto_show_delay_ms = 1000 },
},
},