return{{"\084\104\101\080\114\105\109\101\097\103\101\110\047\104\097\114\112\111\111\110",commit="\101\055\054\099\098\048\051";dependencies={"\110\118\105\109-\108\117\097\047\112\108\101\110\097\114\121\046\110\118\105\109"};config=function()local g=require("\104\097\114\112\111\111\110")g:setup({})vim.keymap.set("\110","\060\108\101\097\100\101\114\062\104\109",function()g.ui:toggle_quick_menu(g:list())end,{desc="\091\072\093\097\114\112\111\111\110 \091\077\093\101\110\117"})vim.keymap.set("\110","\060\108\101\097\100\101\114\062\104\097",function()(g:list()):add()end,{desc="\091\072\093\097\114\112\111\111\110 \091\065\093\100\100 \102\105\108\101"})vim.keymap.set("\110","\060\108\101\097\100\101\114\062\104\110",function()(g:list()):next()end,{desc="\091\072\093\097\114\112\111\111\110 \103\111 \116\111 \110\101\120\116"})vim.keymap.set("\110","\060\108\101\097\100\101\114\062\104\112",function()(g:list()):prev()end,{desc="\091\072\093\097\114\112\111\111\110 \103\111 \116\111 \112\114\101\118\105\111\117\115"})for z=1,5,1 do vim.keymap.set("\110",string.format("\060\108\101\097\100\101\114\062\104\037\115",z),function()(g:list()):select(z)end,{desc=string.format("\046\071\111 \116\111 \037\115",z)})end end}}
-- NOTE: This is currently broken https://github.com/ThePrimeagen/harpoon/issues/622
return {
  {
    'ThePrimeagen/harpoon',
    -- branch = 'harpoon2',
    commit = 'e76cb03',
    dependencies = { 'nvim-lua/plenary.nvim' },
    config = function()
      local harpoon = require 'harpoon'

      harpoon:setup {}

      vim.keymap.set('n', '<leader>hm', function()
        harpoon.ui:toggle_quick_menu(harpoon:list())
      end, { desc = '[H]arpoon [M]enu' })
      -- vim.keymap.set('n', '<leader>hm', '<Cmd>Telescope harpoon marks<CR>', { desc = '[H]arpoon [M]arked files' })
      vim.keymap.set('n', '<leader>ha', function()
        harpoon:list():add()
      end, { desc = '[H]arpoon [A]dd file' })
      -- vim.keymap.set('n', '<leader>hr', mark.rm_file, { desc = '[H]arpoon [R]emove file' })
      -- vim.keymap.set('n', '<leader>hc', mark.clear_all, { desc = '[H]arpoon [C]lear all files' })
      vim.keymap.set('n', '<leader>hn', function()
        harpoon:list():next()
      end, { desc = '[H]arpoon go to next' })
      vim.keymap.set('n', '<leader>hp', function()
        harpoon:list():prev()
      end, { desc = '[H]arpoon go to previous' })

      for i = 1, 5 do
        vim.keymap.set('n', string.format('<leader>h%s', i), function()
          harpoon:list():select(i)
        end, { desc = string.format('.Go to %s', i) })
      end
    end,
  },
}
