From a4468aa339a98ec55f5ac54e7f99fe77eca06c5a Mon Sep 17 00:00:00 2001 From: ShatteredMINT Date: Wed, 9 Oct 2024 15:25:48 +0200 Subject: [PATCH] fix completion scrolling keybinds --- lua/config/nvim-cmp.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/config/nvim-cmp.lua b/lua/config/nvim-cmp.lua index 960e5a8..858c0e2 100644 --- a/lua/config/nvim-cmp.lua +++ b/lua/config/nvim-cmp.lua @@ -19,11 +19,11 @@ cmp.setup({ }, mapping = cmp.mapping.preset.insert({ -- Use to scroll the docs - ['K'] = cmp.mapping.scroll_docs(-4), - ['J'] = cmp.mapping.scroll_docs(4), + [''] = cmp.mapping.scroll_docs(-4), + [''] = cmp.mapping.scroll_docs(4), -- Use to switch in items - ['k'] = cmp.mapping.select_prev_item(), - ['j'] = cmp.mapping.select_next_item(), + [''] = cmp.mapping.select_prev_item(), + [''] = cmp.mapping.select_next_item(), -- Use (Enter) to confirm selection -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. [''] = cmp.mapping.confirm({ select = true }),