mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-25 06:34:52 +00:00
nvim harpoon
This commit is contained in:
parent
b4dc2f0d18
commit
1f1769be70
@ -348,6 +348,12 @@ require('packer').startup(function(use)
|
||||
end
|
||||
}
|
||||
|
||||
-- Project bookmarks
|
||||
use {
|
||||
'ThePrimeagen/harpoon',
|
||||
requires = {'nvim-lua/plenary.nvim'}
|
||||
}
|
||||
|
||||
-- =======================================================================
|
||||
|
||||
-- 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>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
|
||||
key("n", "gd", "<Cmd>lua vim.lsp.buf.definition()<CR>", {silent=true})
|
||||
key("n", "gi", "<Cmd>lua vim.lsp.buf.implementation()<CR>", {silent=true})
|
||||
|
Loading…
Reference in New Issue
Block a user