feat: altered add_file to add harpoon2 change
This commit is contained in:
parent
cd78805b84
commit
3e080f361a
1 changed files with 12 additions and 26 deletions
|
|
@ -2,35 +2,21 @@ return {
|
||||||
'ThePrimeagen/harpoon',
|
'ThePrimeagen/harpoon',
|
||||||
branch = 'harpoon2',
|
branch = 'harpoon2',
|
||||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||||
opts = {},
|
|
||||||
config = function()
|
config = function()
|
||||||
local harpoon = require('harpoon').setup()
|
local harpoon = require('harpoon')
|
||||||
vim.keymap.set('n', '<leader>a', function()
|
|
||||||
harpoon:list():append()
|
|
||||||
end)
|
|
||||||
vim.keymap.set('n', '<C-e>', function()
|
|
||||||
harpoon.ui:toggle_quick_menu(harpoon:list())
|
|
||||||
end)
|
|
||||||
|
|
||||||
vim.keymap.set('n', '<C-h>', function()
|
harpoon:setup()
|
||||||
harpoon:list():select(1)
|
|
||||||
end)
|
vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end)
|
||||||
vim.keymap.set('n', '<C-t>', function()
|
vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
||||||
harpoon:list():select(2)
|
|
||||||
end)
|
vim.keymap.set("n", "<C-h>", function() harpoon:list():select(1) end)
|
||||||
vim.keymap.set('n', '<C-n>', function()
|
vim.keymap.set("n", "<C-t>", function() harpoon:list():select(2) end)
|
||||||
harpoon:list():select(3)
|
vim.keymap.set("n", "<C-n>", function() harpoon:list():select(3) end)
|
||||||
end)
|
vim.keymap.set("n", "<C-s>", function() harpoon:list():select(4) end)
|
||||||
vim.keymap.set('n', '<C-s>', function()
|
|
||||||
harpoon:list():select(4)
|
|
||||||
end)
|
|
||||||
|
|
||||||
-- Toggle previous & next buffers stored within Harpoon list
|
-- Toggle previous & next buffers stored within Harpoon list
|
||||||
vim.keymap.set('n', '<C-S-P>', function()
|
vim.keymap.set("n", "<C-S-P>", function() harpoon:list():prev() end)
|
||||||
harpoon:list():prev()
|
vim.keymap.set("n", "<C-S-N>", function() harpoon:list():next() end)
|
||||||
end)
|
|
||||||
vim.keymap.set('n', '<C-S-N>', function()
|
|
||||||
harpoon:list():next()
|
|
||||||
end)
|
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue