32 lines
981 B
Lua
32 lines
981 B
Lua
return {
|
|
'ThePrimeagen/harpoon',
|
|
branch = 'harpoon2',
|
|
commit = '87b1a35',
|
|
dependencies = { 'nvim-telescope/telescope.nvim', 'nvim-lua/plenary.nvim' },
|
|
config = function()
|
|
local harpoon = require 'harpoon'
|
|
|
|
harpoon:setup()
|
|
|
|
vim.keymap.set('n', '<leader>a', function()
|
|
harpoon:list():add()
|
|
end, { desc = '[A]dd to Harpoon List' })
|
|
vim.keymap.set('n', '<C-e>', function()
|
|
harpoon.ui:toggle_quick_menu(harpoon:list())
|
|
end, { desc = 'Toggle Harpoon List' })
|
|
|
|
vim.keymap.set('n', '<C-h>', function()
|
|
harpoon:list():select(1)
|
|
end, { desc = '1st in Harpoon List' })
|
|
vim.keymap.set('n', '<C-t>', function()
|
|
harpoon:list():select(2)
|
|
end, { desc = '2nd in Harpoon List' })
|
|
vim.keymap.set('n', '<C-n>', function()
|
|
harpoon:list():select(3)
|
|
end, { desc = '3rd in Harpoon List' })
|
|
vim.keymap.set('n', '<C-s>', function()
|
|
harpoon:list():select(4)
|
|
end, { desc = '4th in Harpoon List' })
|
|
end,
|
|
}
|