From 92c07ed89f278a89a1dbf0437162f3a95661dd0e Mon Sep 17 00:00:00 2001 From: xeluxee <88047141+xeluxee@users.noreply.github.com> Date: Sat, 16 Oct 2021 20:19:50 +0200 Subject: [PATCH] fix(cmp): fix and keybindings not working --- lua/lvim/core/cmp.lua | 2 ++ lua/lvim/keymappings.lua | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lua/lvim/core/cmp.lua b/lua/lvim/core/cmp.lua index ad06a360..b1cb1431 100644 --- a/lua/lvim/core/cmp.lua +++ b/lua/lvim/core/cmp.lua @@ -204,6 +204,8 @@ M.config = function() { name = "crates" }, }, mapping = { + [""] = cmp.mapping.select_prev_item(), + [""] = cmp.mapping.select_next_item(), [""] = cmp.mapping.scroll_docs(-4), [""] = cmp.mapping.scroll_docs(4), -- TODO: potentially fix emmet nonsense diff --git a/lua/lvim/keymappings.lua b/lua/lvim/keymappings.lua index 68a49393..be8ebe96 100644 --- a/lua/lvim/keymappings.lua +++ b/lua/lvim/keymappings.lua @@ -81,10 +81,6 @@ function M.config() [""] = "j", [""] = "h", [""] = "l", - -- navigate tab completion with and - -- runs conditionally - [""] = { 'pumvisible() ? "\\" : "\\"', { expr = true, noremap = true } }, - [""] = { 'pumvisible() ? "\\" : "\\"', { expr = true, noremap = true } }, }, ---@usage change or add keymappings for normal mode