SoloVim/lua/plugins/harpoon.lua
2024-05-24 10:12:45 +03:00

55 lines
885 B
Lua

return {
"ThePrimeagen/harpoon",
dependencies = { "nvim-lua/plenary.nvim" },
branch = "harpoon2",
keys = {
{
"<leader>a",
function()
require("harpoon"):list():add()
end,
desc = "Harpoon [A]dd File",
},
{
"<C-e>",
function()
local harpoon = require("harpoon")
harpoon.ui:toggle_quick_menu(harpoon:list())
end,
desc = "Toggle Harpoon Menu",
},
{
"<A-1>",
function()
require("harpoon"):list():select(1)
end,
desc = "Harpoon [1]",
},
{
"<A-2>",
function()
require("harpoon"):list():select(2)
end,
desc = "Harpoon [2]",
},
{
"<A-3>",
function()
require("harpoon"):list():select(3)
end,
desc = "Harpoon [3]",
},
{
"<A-4>",
function()
require("harpoon"):list():select(4)
end,
desc = "Harpoon [4]",
},
},
config = function()
require("harpoon"):setup()
end,
}