2024-03-26 20:07:08 +00:00
|
|
|
return {
|
|
|
|
"ThePrimeagen/harpoon",
|
|
|
|
branch= "harpoon2",
|
|
|
|
dependencies = {{"nvim-lua/plenary.nvim"}},
|
|
|
|
config = function()
|
|
|
|
local harpoon = require("harpoon")
|
|
|
|
harpoon.setup()
|
|
|
|
|
|
|
|
vim.keymap.set("n", "<leader>a", function() harpoon:list():append() end)
|
2024-04-03 19:05:46 +00:00
|
|
|
vim.keymap.set("n", "<C-h>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
2024-03-26 20:07:08 +00:00
|
|
|
|
|
|
|
vim.keymap.set("n", "<leader>1", function() harpoon:list():select(1) end)
|
|
|
|
vim.keymap.set("n", "<leader>2", function() harpoon:list():select(2) end)
|
|
|
|
vim.keymap.set("n", "<leader>3", function() harpoon:list():select(3) end)
|
|
|
|
vim.keymap.set("n", "<leader>4", function() harpoon:list():select(4) end)
|
|
|
|
|
|
|
|
|
2024-04-03 19:05:46 +00:00
|
|
|
vim.keymap.set("n", "<C-Q>", function() harpoon:list():prev() end)
|
|
|
|
vim.keymap.set("n", "<C-E>", function() harpoon:list():next() end)
|
2024-03-26 20:07:08 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
}
|