mirror of
https://github.com/WarrenHood/dotfiles.git
synced 2025-04-30 00:04:59 +01:00
Disable arrow keys
This commit is contained in:
parent
7913d705ee
commit
4a74c879f6
|
@ -144,3 +144,11 @@ map('n', '<Space>bw', '<Cmd>BufferOrderByWindowNumber<CR>', barbar_opts)
|
||||||
-- Other:
|
-- Other:
|
||||||
-- :BarbarEnable - enables barbar (enabled by default)
|
-- :BarbarEnable - enables barbar (enabled by default)
|
||||||
-- :BarbarDisable - very bad command, should never be used
|
-- :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
|
||||||
|
|
Loading…
Reference in a new issue