return { 'ThePrimeagen/harpoon', branch = 'harpoon2', dependencies = { 'nvim-lua/plenary.nvim' }, keys = { '', 'a', '1', '2', '3', '4', '5', '6', '7', '8', '9', }, config = function() local harpoon = require('harpoon') harpoon:setup({ settings = { save_on_toggle = true, }, }) vim.keymap.set('n', 'a', function() harpoon:list():add() end) vim.keymap.set('n', '', function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) for i = 1, 9 do vim.keymap.set('n', string.format('%d', i), function() harpoon:list():select(i) end) end end, }