dev-environment-files/.config/nvim/lua/josean/plugins/harpoon.lua
2023-08-24 13:39:11 -04:00

24 lines
616 B
Lua

return {
"ThePrimeagen/harpoon",
dependencies = {
"nvim-lua/plenary.nvim",
},
config = function()
-- set keymaps
local keymap = vim.keymap -- for conciseness
keymap.set(
"n",
"<leader>hm",
"<cmd>lua require('harpoon.mark').add_file()<cr>",
{ desc = "Mark file with harpoon" }
)
keymap.set("n", "<leader>hn", "<cmd>lua require('harpoon.ui').nav_next()<cr>", { desc = "Go to next harpoon mark" })
keymap.set(
"n",
"<leader>hp",
"<cmd>lua require('harpoon.ui').nav_prev()<cr>",
{ desc = "Go to previous harpoon mark" }
)
end,
}