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 85a7e200ad
commit 37552d6508

View file

@ -13,22 +13,6 @@ cmp.setup({
end, end,
}, },
mapping = { 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) ["<Tab>"] = function(fallback)
if cmp.visible() then if cmp.visible() then
cmp.select_next_item() cmp.select_next_item()