From 9b2999ec3c60da7865c4e4f478973c276a9bed6f Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 8 Aug 2024 20:06:30 +0200 Subject: nvim: Set mappings for both normal and visual modes --- .config/nvim/init.lua | 4 ++-- 1 file 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', 'K', function() end, { desc = 'Open the scratch buffer in a horizontal split' }) if vim.loop.os_uname().sysname ~= 'Darwin' then - vim.keymap.set('n', '', 'V', + vim.keymap.set({'n', 'x'}, '', 'V', { desc = 'Enter visual-line mode' }) - vim.keymap.set('n', 'V', '', + vim.keymap.set({'n', 'x'}, 'V', '', { desc = 'Enter visual-block mode' }) end -- cgit v1.2.3