nvim/lua/plugins/navigator.lua

19 lines
602 B
Lua
Raw Normal View History

return {
"numToStr/Navigator.nvim",
cmd = {
"NavigatorUp",
"NavigatorDown",
"NavigatorLeft",
"NavigatorRight",
"NavigatorPrevious",
},
2023-05-16 09:22:33 +01:00
init = function()
vim.keymap.set({ "n", "t" }, "<A-h>", "<CMD>NavigatorLeft<CR>")
vim.keymap.set({ "n", "t" }, "<A-l>", "<CMD>NavigatorRight<CR>")
vim.keymap.set({ "n", "t" }, "<A-k>", "<CMD>NavigatorUp<CR>")
vim.keymap.set({ "n", "t" }, "<A-j>", "<CMD>NavigatorDown<CR>")
vim.keymap.set({ "n", "t" }, "<A-p>", "<CMD>NavigatorPrevious<CR>")
end,
config = true,
}