Skip to content

Commit 0671b09

Browse files
committed
Harpoon
1 parent 044240a commit 0671b09

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

lua/custom/plugins/harpoon.lua

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
return {
2+
'ThePrimeagen/harpoon',
3+
opts = { -- Opzioni di configurazione specifiche del plugin
4+
menu = {
5+
width = vim.api.nvim_win_get_width(0) - 4,
6+
},
7+
},
8+
config = function()
9+
vim.keymap.set('n', '<leader>j', function()
10+
require('harpoon.mark').add_file()
11+
end, { desc = 'Add file to Harpoon' })
12+
vim.keymap.set('n', '<leader><Tab>', function()
13+
require('harpoon.ui').toggle_quick_menu()
14+
end, { desc = 'Toggle Harpoon Quick Menu' })
15+
vim.keymap.set('n', '<leader><leader>f', function()
16+
require('harpoon.ui').nav_file(1)
17+
end, { desc = 'Navigate to Harpoon file 1' })
18+
vim.keymap.set('n', '<leader><leader>d', function()
19+
require('harpoon.ui').nav_file(2)
20+
end, { desc = 'Navigate to Harpoon file 2' })
21+
vim.keymap.set('n', '<leader><leader>s', function()
22+
require('harpoon.ui').nav_file(3)
23+
end, { desc = 'Navigate to Harpoon file 3' })
24+
vim.keymap.set('n', '<leader><leader>a', function()
25+
require('harpoon.ui').nav_file(4)
26+
end, { desc = 'Navigate to Harpoon file 4' }) -- Mapping dei comandi Harpoon con descrizioni
27+
end,
28+
}

0 commit comments

Comments
 (0)