From 1f1769be70af1b3cee8c47fbb30bb0ca5bbcd7b8 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sun, 14 Nov 2021 20:32:44 -0500 Subject: [PATCH] nvim harpoon --- nvim.configlink/init.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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})