return { "ThePrimeagen/harpoon", branch = "harpoon2", dependencies = { "nvim-lua/plenary.nvim", }, config = function() local harpoon = require("harpoon") -- REQUIRED harpoon:setup() -- REQUIRED local keymap = vim.keymap keymap.set("n", "a", function() harpoon:list():add() end, { desc = "Mark file with harpoon" }) keymap.set("n", "", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end, { desc = "Toggle quick menu for harpoon" }) keymap.set("n", "1", function() harpoon:list():select(1) end, { desc = "Go to first harpoon file" }) keymap.set("n", "h", function() harpoon:list():select(1) end, { desc = "Go to first harpoon file" }) keymap.set("n", "2", function() harpoon:list():select(2) end, { desc = "Go to second harpoon file" }) keymap.set("n", "j", function() harpoon:list():select(2) end, { desc = "Go to second harpoon file" }) keymap.set("n", "3", function() harpoon:list():select(3) end, { desc = "Go to third harpoon file" }) keymap.set("n", "k", function() harpoon:list():select(3) end, { desc = "Go to third harpoon file" }) keymap.set("n", "4", function() harpoon:list():select(4) end, { desc = "Go to fourth harpoon file" }) keymap.set("n", "l", function() harpoon:list():select(4) end, { desc = "Go to fourth harpoon file" }) keymap.set("n", "", function() harpoon:list():prev() end) keymap.set("n", "", function() harpoon:list():next() end) end, }