summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-08-08 20:06:30 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-08-08 20:06:30 +0200
commit9b2999ec3c60da7865c4e4f478973c276a9bed6f (patch)
tree7da57d46553b36324d7a0ccf491ece16e5310121 /.config/nvim
parent35fd372acade33a609b87e39862fb77cba363296 (diff)
nvim: Set mappings for both normal and visual modes
Diffstat (limited to '.config/nvim')
-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 d461371..8359d47 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -106,9 +106,9 @@ vim.keymap.set('n', '<leader>K', function()
end, { desc = 'Open the scratch buffer in a horizontal split' })
if vim.loop.os_uname().sysname ~= 'Darwin' then
- vim.keymap.set('n', '<C-v>', 'V',
+ vim.keymap.set({'n', 'x'}, '<C-v>', 'V',
{ desc = 'Enter visual-line mode' })
- vim.keymap.set('n', 'V', '<C-v>',
+ vim.keymap.set({'n', 'x'}, 'V', '<C-v>',
{ desc = 'Enter visual-block mode' })
end