62 lines
1.1 KiB
Lua
62 lines
1.1 KiB
Lua
return {
|
|
'ThePrimeagen/harpoon',
|
|
branch = 'harpoon2',
|
|
opts = {
|
|
menu = {
|
|
width = vim.api.nvim_win_get_width(0) - 4,
|
|
},
|
|
},
|
|
keys = {
|
|
{
|
|
'<leader>H',
|
|
function()
|
|
require('harpoon'):list():append()
|
|
end,
|
|
desc = 'Harpoon File',
|
|
},
|
|
{
|
|
'<leader>h',
|
|
function()
|
|
local harpoon = require 'harpoon'
|
|
harpoon.ui:toggle_quick_menu(harpoon:list())
|
|
end,
|
|
desc = 'Harpoon Quick Menu',
|
|
},
|
|
{
|
|
'<leader>1',
|
|
function()
|
|
require('harpoon'):list():select(1)
|
|
end,
|
|
desc = 'Harpoon to File 1',
|
|
},
|
|
{
|
|
'<leader>2',
|
|
function()
|
|
require('harpoon'):list():select(2)
|
|
end,
|
|
desc = 'Harpoon to File 2',
|
|
},
|
|
{
|
|
'<leader>3',
|
|
function()
|
|
require('harpoon'):list():select(3)
|
|
end,
|
|
desc = 'Harpoon to File 3',
|
|
},
|
|
{
|
|
'<leader>4',
|
|
function()
|
|
require('harpoon'):list():select(4)
|
|
end,
|
|
desc = 'Harpoon to File 4',
|
|
},
|
|
{
|
|
'<leader>5',
|
|
function()
|
|
require('harpoon'):list():select(5)
|
|
end,
|
|
desc = 'Harpoon to File 5',
|
|
},
|
|
},
|
|
}
|