From f0b30f0a83988e6194970838656f9d4e8250e547 Mon Sep 17 00:00:00 2001 From: Christian Chiarulli Date: Tue, 14 Sep 2021 01:33:40 -0400 Subject: fix: no preselect for up/down, c-j/c-k and tab/s-tab --- lua/core/cmp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/core') diff --git a/lua/core/cmp.lua b/lua/core/cmp.lua index acfb05ae..928b7e3a 100644 --- a/lua/core/cmp.lua +++ b/lua/core/cmp.lua @@ -78,7 +78,7 @@ M.config = function() -- TODO: potentially fix emmet nonsense [""] = cmp.mapping(function() if vim.fn.pumvisible() == 1 then - vim.fn.feedkeys(T "", "n") + vim.fn.feedkeys(T "", "n") elseif luasnip.expand_or_jumpable() then vim.fn.feedkeys(T "luasnip-expand-or-jump", "") elseif check_backspace() then @@ -94,7 +94,7 @@ M.config = function() }), [""] = cmp.mapping(function(fallback) if vim.fn.pumvisible() == 1 then - vim.fn.feedkeys(T "", "n") + vim.fn.feedkeys(T "", "n") elseif luasnip.jumpable(-1) then vim.fn.feedkeys(T "luasnip-jump-prev", "") else -- cgit v1.2.3