update harpoon to harpoon 2
This commit is contained in:
@ -104,21 +104,24 @@ if pcall(require, "telescope") then
|
||||
end
|
||||
|
||||
-- harpoon
|
||||
if pcall(require, 'harpoon') then
|
||||
local mark = require("harpoon.mark")
|
||||
local ui = require("harpoon.ui")
|
||||
if (pcall(require, 'harpoon')) then
|
||||
local harpoon = require("harpoon")
|
||||
|
||||
map("n", "<leader>a", function()
|
||||
mark.add_file()
|
||||
harpoon:list():append()
|
||||
vim.notify('added new file to quickmarks', vim.log.levels.INFO, {
|
||||
title = misc.appid,
|
||||
})
|
||||
end)
|
||||
map("n", "<C-e>", ui.toggle_quick_menu)
|
||||
map('n', '<C-q>', function() ui.nav_file(1) end)
|
||||
map('n', '<C-g>', function() ui.nav_file(2) end)
|
||||
map('n', '<C-h>', function() ui.nav_file(3) end)
|
||||
map('n', '<C-i>', function() ui.nav_file(4) end)
|
||||
map('n', '<C-q>', function() harpoon:list():select(1) end)
|
||||
map('n', '<C-g>', function() harpoon:list():select(2) end)
|
||||
map('n', '<C-h>', function() harpoon:list():select(3) end)
|
||||
map('n', '<C-i>', function() harpoon:list():select(4) end)
|
||||
|
||||
map("n", "<C-S-P>", function() harpoon:list():prev() end)
|
||||
map("n", "<C-S-N>", function() harpoon:list():next() end)
|
||||
|
||||
map("n", "<C-e>", function() require("core.harpoon").switcher() end)
|
||||
end
|
||||
|
||||
map('n', '<leader>u', '<cmd>UndotreeToggle<CR>', { desc = 'Open undo tree.' })
|
||||
|
@ -43,6 +43,7 @@ require('dep') {
|
||||
{ 'ahmedkhalf/project.nvim' }, -- cd into root of project
|
||||
{ 'mrjones2014/smart-splits.nvim'}, -- buffer resizing
|
||||
{ 'ThePrimeagen/harpoon', -- super duper fast navigation through files
|
||||
branch = 'harpoon2',
|
||||
requires = 'nvim-lua/plenary.nvim'
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user