Disable arrow keys

This commit is contained in:
Warren Hood 2023-01-18 16:49:59 +02:00
parent 7913d705ee
commit 4a74c879f6

View file

@ -144,3 +144,11 @@ map('n', '<Space>bw', '<Cmd>BufferOrderByWindowNumber<CR>', barbar_opts)
-- Other:
-- :BarbarEnable - enables barbar (enabled by default)
-- :BarbarDisable - very bad command, should never be used
-- Disable arrow keys
local arrows = {'<Up>', '<Down>', '<Left>', '<Right>'}
for i=1,#arrows do
map('n', arrows[i], function () end)
map('i', arrows[i], function () end)
end