home: vim: completion: remove up/down mappings

I do not use arrow keys, why bother with them.
This commit is contained in:
Bruno BELANYI 2022-03-07 21:28:19 +01:00
parent fdf1f1617f
commit d5e50b5389

View file

@ -13,22 +13,6 @@ cmp.setup({
end,
},
mapping = {
["<Down>"] = cmp.mapping({
i = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Select }),
c = function(fallback)
cmp.close()
vim.schedule(cmp.suspend())
fallback()
end,
}),
["<Up>"] = cmp.mapping({
i = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Select }),
c = function(fallback)
cmp.close()
vim.schedule(cmp.suspend())
fallback()
end,
}),
["<Tab>"] = function(fallback)
if cmp.visible() then
cmp.select_next_item()