Unmap arrow keys :)

This commit is contained in:
2025-06-01 01:02:01 +05:00
parent fdf90caaaf
commit 0f6eee8e97

View File

@ -14,3 +14,12 @@ end, { desc = "Go to next diagnostic" })
map("n", "<leader>k", function()
vim.diagnostic.jump { count = -1 }
end, { desc = "Go to previous diagnostic" })
local modes = { "n", "i", "v", "x" }
local keys = { "<Up>", "<Down>", "<Left>", "<Right>" }
for _, mode in ipairs(modes) do
for _, key in ipairs(keys) do
map(mode, key, "<Nop>", { desc = "Disabled arrow key" })
end
end