summaryrefslogtreecommitdiff
path: root/lua/keymappings.lua
diff options
context:
space:
mode:
authorChristian Chiarulli <[email protected]>2021-09-14 01:33:40 -0400
committerChristian Chiarulli <[email protected]>2021-09-14 01:33:40 -0400
commitf0b30f0a83988e6194970838656f9d4e8250e547 (patch)
treeb449a20cd5783f424a52f8843e82379f12a87518 /lua/keymappings.lua
parent414777077fc8cd76a83fe3b97c80c149f7dd7d0d (diff)
fix: no preselect for up/down, c-j/c-k and tab/s-tab
Diffstat (limited to 'lua/keymappings.lua')
-rw-r--r--lua/keymappings.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/keymappings.lua b/lua/keymappings.lua
index 557e0bde..027ca83f 100644
--- a/lua/keymappings.lua
+++ b/lua/keymappings.lua
@@ -83,8 +83,8 @@ function M.config()
["<A-Right>"] = "<C-\\><C-N><C-w>l",
-- navigate tab completion with <c-j> and <c-k>
-- runs conditionally
- ["<C-j>"] = { 'pumvisible() ? "\\<C-n>" : "\\<C-j>"', { expr = true, noremap = true } },
- ["<C-k>"] = { 'pumvisible() ? "\\<C-p>" : "\\<C-k>"', { expr = true, noremap = true } },
+ ["<C-j>"] = { 'pumvisible() ? "\\<down>" : "\\<C-j>"', { expr = true, noremap = true } },
+ ["<C-k>"] = { 'pumvisible() ? "\\<up>" : "\\<C-k>"', { expr = true, noremap = true } },
},
---@usage change or add keymappings for normal mode