-- TODO: might end up writing my own because I like harpoon, but I hate that it -- doesn't work properly without being pinned to a specific commit local map = core.misc.map return { "ThePrimeagen/harpoon", disable = not vim.fn.has("nvim-0.8.0"), commit = "e76cb03", branch = "harpoon2", requires = "nvim-lua/plenary.nvim", function() local harpoon = require("harpoon") harpoon:setup() map("n", "a", function() harpoon:list():add() vim.notify("added "..vim.fn.expand("%:t").." to quickmarks") end, { desc = "add current file to quickmarks" }) map("n", "", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) map("n", "", function() harpoon:list():select(1) end) map("n", "", function() harpoon:list():select(2) end) map("n", "", function() harpoon:list():select(3) end) map("n", "", function() harpoon:list():select(4) end) -- Toggle previous & next buffers stored within Harpoon list map("n", "", function() harpoon:list():prev() end) map("n", "", function() harpoon:list():next() end) end }