diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-07 14:56:25 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-07 17:26:25 +0200 |
| commit | e06f32f4c03618c0336611e1674f9f2a7fce7168 (patch) | |
| tree | 58ecdaf872d914e5586327187c96aebb328fd420 | |
| parent | 96868a967e9dee469cf8652da63ebaae585d4d06 (diff) | |
| download | dotfiles-e06f32f4c03618c0336611e1674f9f2a7fce7168.tar.gz dotfiles-e06f32f4c03618c0336611e1674f9f2a7fce7168.zip | |
misc(nvim): update key mappings
| -rw-r--r-- | .config/nvim/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 2457a83..5466a83 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -171,10 +171,10 @@ vim.keymap.set({ "c", "i" }, "<M-l>", "<Space><BS><Right>") vim.keymap.set("c", "<M-H>", "<C-Left>") vim.keymap.set("c", "<M-L>", "<C-Right>") -- Non incremental history search, works when the completion menu is active -vim.keymap.set("c", "<C-k>", function() +vim.keymap.set("c", "<C-p>", function() return vim.fn.pumvisible() == 1 and "<C-e><Up>" or "<Up>" end, { expr = true }) -vim.keymap.set("c", "<C-j>", function() +vim.keymap.set("c", "<C-n>", function() return vim.fn.pumvisible() == 1 and "<C-e><Down>" or "<Down>" end, { expr = true }) -- Simulate `i_CTRL-R` in terminal mode |
