
* fix(config): harpoon2 deprecated message when adding new file to list and fix auto save on file list toggle * fix: Update harpoon2.lua to add pleanery dep * fix: no need for plenary deps here --------- Co-authored-by: Alan Alvarenga <alan.alvarengamejia@telus.com> Co-authored-by: Rubin Bhandari <roobin.bhandari@gmail.com> Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
43 lines
824 B
Lua
43 lines
824 B
Lua
return {
|
|
"ThePrimeagen/harpoon",
|
|
branch = "harpoon2",
|
|
opts = {
|
|
menu = {
|
|
width = vim.api.nvim_win_get_width(0) - 4,
|
|
},
|
|
settings = {
|
|
save_on_toggle = true,
|
|
},
|
|
},
|
|
keys = function()
|
|
local keys = {
|
|
{
|
|
"<leader>H",
|
|
function()
|
|
require("harpoon"):list():add()
|
|
end,
|
|
desc = "Harpoon File",
|
|
},
|
|
{
|
|
"<leader>h",
|
|
function()
|
|
local harpoon = require("harpoon")
|
|
harpoon.ui:toggle_quick_menu(harpoon:list())
|
|
end,
|
|
desc = "Harpoon Quick Menu",
|
|
},
|
|
}
|
|
|
|
for i = 1, 5 do
|
|
table.insert(keys, {
|
|
"<leader>" .. i,
|
|
function()
|
|
require("harpoon"):list():select(i)
|
|
end,
|
|
desc = "Harpoon to File " .. i,
|
|
})
|
|
end
|
|
return keys
|
|
end,
|
|
}
|