Skip to content

Commit

Permalink
feat: add harpoon nav prev, nav next
Browse files Browse the repository at this point in the history
  • Loading branch information
konradmalik committed Sep 21, 2023
1 parent d088238 commit 2b3dadc
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions config/native/plugin/harpoon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@ local harpoon_ui = require("harpoon.ui")

vim.keymap.set("n", "<leader>ha", harpoon_mark.add_file, opts_with_desc("Add file"))
vim.keymap.set("n", "<leader>ht", harpoon_ui.toggle_quick_menu, opts_with_desc("Toggle Menu"))
vim.keymap.set("n", "<leader>hj", function() harpoon_ui.nav_file(1) end, opts_with_desc("Go to 1"))
vim.keymap.set("n", "<leader>hk", function() harpoon_ui.nav_file(2) end, opts_with_desc("Go to 2"))
vim.keymap.set("n", "<leader>hl", function() harpoon_ui.nav_file(3) end, opts_with_desc("Go to 3"))
vim.keymap.set("n", "<leader>h;", function() harpoon_ui.nav_file(4) end, opts_with_desc("Go to 4"))
vim.keymap.set("n", "<leader>hj", function()
harpoon_ui.nav_file(1)
end, opts_with_desc("Go to 1"))
vim.keymap.set("n", "<leader>hk", function()
harpoon_ui.nav_file(2)
end, opts_with_desc("Go to 2"))
vim.keymap.set("n", "<leader>hl", function()
harpoon_ui.nav_file(3)
end, opts_with_desc("Go to 3"))
vim.keymap.set("n", "<leader>h;", function()
harpoon_ui.nav_file(4)
end, opts_with_desc("Go to 4"))
vim.keymap.set("n", "]h", harpoon_ui.nav_next, opts_with_desc("Cycle next"))
vim.keymap.set("n", "[h", harpoon_ui.nav_prev, opts_with_desc("Cycle previous"))

0 comments on commit 2b3dadc

Please sign in to comment.