home: vim: completion: remove up/down mappings
I do not use arrow keys, why bother with them.
This commit is contained in:
parent
fdf1f1617f
commit
d5e50b5389
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue