nvim harpoon

This commit is contained in:
Noah Masur 2021-11-14 20:32:44 -05:00
parent b4dc2f0d18
commit 1f1769be70

View File

@ -348,6 +348,12 @@ require('packer').startup(function(use)
end end
} }
-- Project bookmarks
use {
'ThePrimeagen/harpoon',
requires = {'nvim-lua/plenary.nvim'}
}
-- ======================================================================= -- =======================================================================
-- Install on initial bootstrap -- Install on initial bootstrap
@ -511,6 +517,13 @@ key("n", "<Leader>gf", ":Telescope git_bcommits<CR>")
key("n", "<Leader>gb", ":Telescope git_branches<CR>") key("n", "<Leader>gb", ":Telescope git_branches<CR>")
key("n", "<Leader>gs", ":Telescope git_status<CR>") key("n", "<Leader>gs", ":Telescope git_status<CR>")
-- Harpoon
key("n", "<Leader>m", ":<Cmd> lua require('harpoon.mark').add_file()<CR><Esc>")
key("n", "<Leader>`", ":<Cmd> lua require('harpoon.ui').toggle_quick_menu()<CR><Esc>")
key("n", "<Leader>1", ":<Cmd> lua require('harpoon.ui').nav_file(1)<CR><Esc>")
key("n", "<Leader>2", ":<Cmd> lua require('harpoon.ui').nav_file(2)<CR><Esc>")
key("n", "<Leader>3", ":<Cmd> lua require('harpoon.ui').nav_file(3)<CR><Esc>")
-- LSP -- LSP
key("n", "gd", "<Cmd>lua vim.lsp.buf.definition()<CR>", {silent=true}) key("n", "gd", "<Cmd>lua vim.lsp.buf.definition()<CR>", {silent=true})
key("n", "gi", "<Cmd>lua vim.lsp.buf.implementation()<CR>", {silent=true}) key("n", "gi", "<Cmd>lua vim.lsp.buf.implementation()<CR>", {silent=true})