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 | bc1fb28a9226237800dfeb1112e04dfeebccb15d (patch) | |
| tree | c85e5c73494219301ac524a8c68598fd9d562710 /init.lua | |
| parent | 3ae3bee8237a9a484d0474a915679ddfe705a980 (diff) | |
| download | nvim-config-bc1fb28a9226237800dfeb1112e04dfeebccb15d.tar.gz nvim-config-bc1fb28a9226237800dfeb1112e04dfeebccb15d.zip | |
misc(nvim): update key mappings
Diffstat (limited to 'init.lua')
| -rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
