mirror of
https://github.com/marianozunino/nvim.git
synced 2025-06-29 02:53:50 -03:00
chore: move plugins to an upper level
This commit is contained in:
parent
9569774c7b
commit
99bcb4ca97
50 changed files with 69 additions and 69 deletions
|
@ -1,35 +0,0 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue