summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-11 22:20:31 +0200
committerThomas Voss <thomas.voss@humanwave.nl> 2024-06-12 18:49:56 +0200
commit9b33655f9b35e6c4e48987454e2491c0974fbb40 (patch)
tree655d697a6e702b7657960e78b3e02b1c33964e5c
parentaa5f588992807302ea40e8e3344693c1d31948da (diff)
nvim: Remap in visual- but not select mode
-rw-r--r--.config/nvim/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index 1e7f0f3..0d7763e 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -72,9 +72,9 @@ vim.keymap.set('n', 'M', ':make<CR>',
{ desc = 'Run the configured compiler' })
vim.keymap.set('n', 'V', '<C-v>',
{ desc = 'Enter visual-block mode' })
-vim.keymap.set('v', '<C-j>', ":m '>+1<CR>gv=gv",
+vim.keymap.set('x', '<C-j>', ":m '>+1<CR>gv=gv",
{ desc = 'Move a selection down a line' })
-vim.keymap.set('v', '<C-k>', ":m '<-2<CR>gv=gv",
+vim.keymap.set('x', '<C-k>', ":m '<-2<CR>gv=gv",
{ desc = 'Move a selection up a line' })
vim.keymap.set({ 'n', 'o', 'x' }, '€', '$',
{ desc = 'Go to end of the line' })