2025-05-01 07:50:51 +05:00
|
|
|
return {
|
|
|
|
'ThePrimeagen/harpoon',
|
|
|
|
branch = 'harpoon2',
|
|
|
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
|
|
|
config = function()
|
|
|
|
|
|
|
|
local harpoon = require('harpoon')
|
|
|
|
harpoon:setup({
|
|
|
|
settings = {
|
|
|
|
save_on_toggle = true,
|
|
|
|
sync_on_ui_close = true
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
vim.keymap.set('n', '<leader>a', function() harpoon:list():add() end)
|
|
|
|
vim.keymap.set('n', '<C-h>', function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
|
|
|
|
2025-05-05 22:56:56 +05:00
|
|
|
vim.keymap.set('n', '<C-l>', function() harpoon:list():select(1) end)
|
|
|
|
vim.keymap.set('n', '<C-j>', function() harpoon:list():select(2) end)
|
2025-05-12 20:14:01 +05:00
|
|
|
vim.keymap.set('n', '<Down>', function() harpoon:list():select(3) end)
|
|
|
|
vim.keymap.set('n', '<Up>', function() harpoon:list():select(4) end)
|
2025-05-01 07:50:51 +05:00
|
|
|
|
|
|
|
-- -- Toggle previous & next buffers stored within Harpoon list
|
|
|
|
-- vim.keymap.set('n', '<C-S-P>', function() harpoon:list():prev() end)
|
|
|
|
-- vim.keymap.set('n', '<C-S-N>', function() harpoon:list():next() end)
|
|
|
|
|
|
|
|
end
|
|
|
|
}
|