.
This commit is contained in:
parent
7b66c99953
commit
8adae8f8a5
17 changed files with 800 additions and 866 deletions
38
lua/kickstart/plugins/harpoon.lua
Normal file
38
lua/kickstart/plugins/harpoon.lua
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
return {
|
||||
'ThePrimeagen/harpoon',
|
||||
branch = 'harpoon2',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
|
||||
init = function()
|
||||
local harpoon = require 'harpoon'
|
||||
|
||||
-- REQUIRED
|
||||
harpoon:setup()
|
||||
-- REQUIRED
|
||||
|
||||
local map = vim.keymap.set
|
||||
|
||||
map('n', '<leader>a', function()
|
||||
harpoon:list():add()
|
||||
end)
|
||||
map('n', '<C-h>', function()
|
||||
harpoon.ui:toggle_quick_menu(harpoon:list())
|
||||
end)
|
||||
|
||||
map('n', '<leader>1', function()
|
||||
harpoon:list():select(1)
|
||||
end, { desc = '[Harpoon] Go to first buffer saved' })
|
||||
map('n', '<leader>2', function()
|
||||
harpoon:list():select(2)
|
||||
end, { desc = '[Harpoon] Go to second buffer saved' })
|
||||
map('n', '<leader>3', function()
|
||||
harpoon:list():select(3)
|
||||
end, { desc = '[Harpoon] Go to third buffer saved' })
|
||||
map('n', '<leader>4', function()
|
||||
harpoon:list():select(4)
|
||||
end, { desc = '[Harpoon] Go to forth buffer saved' })
|
||||
map('n', '<leader>5', function()
|
||||
harpoon:list():select(5)
|
||||
end, { desc = '[Harpoon] Go to forth buffer saved' })
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue