2024-03-03 18:01:30 -05:00
|
|
|
return {
|
|
|
|
|
"ThePrimeagen/harpoon",
|
|
|
|
|
branch = "harpoon2",
|
2025-03-30 22:53:25 -04:00
|
|
|
dependencies = {
|
|
|
|
|
"nvim-lua/plenary.nvim"
|
2024-03-03 18:01:30 -05:00
|
|
|
},
|
2025-03-30 22:53:25 -04:00
|
|
|
config = function()
|
2024-03-03 18:01:30 -05:00
|
|
|
local harpoon = require("harpoon")
|
|
|
|
|
-- REQUIRED
|
|
|
|
|
harpoon:setup()
|
|
|
|
|
-- REQUIRED
|
2024-12-13 19:41:07 -05:00
|
|
|
vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end)
|
2024-03-03 18:01:30 -05:00
|
|
|
vim.keymap.set("n", "<leader>c", function() harpoon:list():clear() end)
|
|
|
|
|
vim.keymap.set("n", "<leader>r", function() harpoon:list():remove() end)
|
2025-02-14 23:19:38 -05:00
|
|
|
vim.keymap.set("n", "<leader>h", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
2024-03-03 18:01:30 -05:00
|
|
|
end
|
|
|
|
|
}
|