From 6d15dd4ed13521ed3e250a846ab4695fe29b7816 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Wed, 28 Feb 2024 08:03:09 +0100 Subject: [PATCH] no arrow keys, even in visual mode --- lua/keymaps.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 78361e3..9700d3b 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -15,10 +15,10 @@ vim.keymap.set('n', 'e', vim.diagnostic.open_float, { desc = 'Open float vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagnostics list' }) -- Disable arrow keys in normal mode -vim.keymap.set('n', '', 'echo "Use h to move!!"') -vim.keymap.set('n', '', 'echo "Use l to move!!"') -vim.keymap.set('n', '', 'echo "Use k to move!!"') -vim.keymap.set('n', '', 'echo "Use j to move!!"') +vim.keymap.set({ 'n', 'v' }, '', 'echo "Use h to move!!"') +vim.keymap.set({ 'n', 'v' }, '', 'echo "Use l to move!!"') +vim.keymap.set({ 'n', 'v' }, '', 'echo "Use k to move!!"') +vim.keymap.set({ 'n', 'v' }, '', 'echo "Use j to move!!"') -- Keybinds to make split navigation easier. -- Use CTRL+ to switch between windows