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