mirror of
https://github.com/josean-dev/dev-environment-files.git
synced 2025-01-09 17:51:20 +01:00
24 lines
616 B
Lua
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,
|
|
}
|