chore: move plugins to an upper level

This commit is contained in:
Mariano Z. 2024-12-22 12:16:36 -03:00
parent 9569774c7b
commit 99bcb4ca97
Signed by: marianozunino
GPG key ID: 4C73BAD25156DACE
50 changed files with 69 additions and 69 deletions

35
lua/plugins/harpoon.lua Normal file
View file

@ -0,0 +1,35 @@
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