mirror of
https://github.com/marianozunino/nvim.git
synced 2025-06-28 18:43:50 -03:00
35 lines
660 B
Lua
35 lines
660 B
Lua
local M = {
|
|
"ThePrimeagen/harpoon",
|
|
branch = "harpoon2",
|
|
|
|
dependencies = {
|
|
"nvim-lua/plenary.nvim",
|
|
},
|
|
}
|
|
|
|
M.config = function()
|
|
local harpoon = require("harpoon")
|
|
|
|
harpoon:setup({
|
|
settings = {
|
|
save_on_toggle = true,
|
|
sync_on_ui_close = true,
|
|
},
|
|
})
|
|
|
|
nmap("<leader>a", function()
|
|
harpoon:list():add()
|
|
end, { desc = "Harpoon: Append" })
|
|
|
|
nmap("<leader>h", function()
|
|
harpoon.ui:toggle_quick_menu(harpoon:list())
|
|
end, { desc = "Harpoon: Toggle Quick Menu" })
|
|
|
|
for i = 1, 4 do
|
|
nmap("<leader>" .. i, function()
|
|
harpoon:list():select(i)
|
|
end, { desc = "Harpoon: Select " .. i })
|
|
end
|
|
end
|
|
|
|
return M
|