diff --git a/nvim.configlink/init.lua b/nvim.configlink/init.lua index 062dc73..0573784 100644 --- a/nvim.configlink/init.lua +++ b/nvim.configlink/init.lua @@ -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", "gf", ":Telescope git_bcommits") key("n", "gb", ":Telescope git_branches") key("n", "gs", ":Telescope git_status") +-- Harpoon +key("n", "m", ": lua require('harpoon.mark').add_file()") +key("n", "`", ": lua require('harpoon.ui').toggle_quick_menu()") +key("n", "1", ": lua require('harpoon.ui').nav_file(1)") +key("n", "2", ": lua require('harpoon.ui').nav_file(2)") +key("n", "3", ": lua require('harpoon.ui').nav_file(3)") + -- LSP key("n", "gd", "lua vim.lsp.buf.definition()", {silent=true}) key("n", "gi", "lua vim.lsp.buf.implementation()", {silent=true})