From 37552d6508c228fb97c53aee5b2878eed7fb5331 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 7 Mar 2022 21:28:19 +0100 Subject: [PATCH] home: vim: completion: remove up/down mappings I do not use arrow keys, why bother with them. --- home/vim/plugin/settings/completion.vim | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/home/vim/plugin/settings/completion.vim b/home/vim/plugin/settings/completion.vim index 85892a5..96164a7 100644 --- a/home/vim/plugin/settings/completion.vim +++ b/home/vim/plugin/settings/completion.vim @@ -13,22 +13,6 @@ cmp.setup({ end, }, mapping = { - [""] = cmp.mapping({ - i = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Select }), - c = function(fallback) - cmp.close() - vim.schedule(cmp.suspend()) - fallback() - end, - }), - [""] = cmp.mapping({ - i = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Select }), - c = function(fallback) - cmp.close() - vim.schedule(cmp.suspend()) - fallback() - end, - }), [""] = function(fallback) if cmp.visible() then cmp.select_next_item()