From 4a74c879f63c659eef84759ca784aa2b759087f8 Mon Sep 17 00:00:00 2001 From: Warren Hood Date: Wed, 18 Jan 2023 16:49:59 +0200 Subject: [PATCH] Disable arrow keys --- neovim/.config/nvim/lua/warrenhood/keybinds.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/neovim/.config/nvim/lua/warrenhood/keybinds.lua b/neovim/.config/nvim/lua/warrenhood/keybinds.lua index a61b584..6dbe3b6 100644 --- a/neovim/.config/nvim/lua/warrenhood/keybinds.lua +++ b/neovim/.config/nvim/lua/warrenhood/keybinds.lua @@ -144,3 +144,11 @@ map('n', 'bw', 'BufferOrderByWindowNumber', barbar_opts) -- Other: -- :BarbarEnable - enables barbar (enabled by default) -- :BarbarDisable - very bad command, should never be used + + +-- Disable arrow keys +local arrows = {'', '', '', ''} +for i=1,#arrows do + map('n', arrows[i], function () end) + map('i', arrows[i], function () end) +end