2023-10-11 18:13:14 +01:00
|
|
|
return {
|
2024-04-20 15:55:00 +01:00
|
|
|
"theprimeagen/harpoon",
|
|
|
|
branch = "harpoon2",
|
|
|
|
dependencies = "nvim-lua/plenary.nvim",
|
|
|
|
config = function()
|
|
|
|
local harpoon = require("harpoon")
|
|
|
|
|
|
|
|
harpoon:setup()
|
|
|
|
|
|
|
|
vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end)
|
|
|
|
vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
|
|
|
|
|
|
|
vim.keymap.set("n", "<C-h>", function() harpoon:list():select(1) end)
|
|
|
|
vim.keymap.set("n", "<C-j>", function() harpoon:list():select(2) end)
|
|
|
|
vim.keymap.set("n", "<C-k>", function() harpoon:list():select(3) end)
|
|
|
|
vim.keymap.set("n", "<C-l>", function() harpoon:list():select(4) end)
|
|
|
|
|
|
|
|
-- 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,
|
2023-10-11 18:13:14 +01:00
|
|
|
}
|