From 2c6ea969819fe5e5cd728b66c60ea57da0dac22a Mon Sep 17 00:00:00 2001 From: abs3nt Date: Wed, 8 Mar 2023 11:14:02 -0800 Subject: [PATCH] updates --- lua/plugins.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/lua/plugins.lua b/lua/plugins.lua index 23eaa99..26060bb 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -27,6 +27,29 @@ return { ft = { "markdown" } }, + { + 'ThePrimeagen/harpoon', + dependencies = { + 'nvim-lua/plenary.nvim' + }, + config = function() + require("harpoon").setup({ + -- sets the marks upon calling `toggle` on the ui, instead of require `:w`. + save_on_toggle = false, + -- saves the harpoon file upon every change. disabling is unrecommended. + save_on_change = true, + -- sets harpoon to run the command immediately as it's passed to the terminal when calling `sendCommand`. + enter_on_sendcmd = false, + -- closes any tmux windows harpoon that harpoon creates when you close Neovim. + tmux_autoclose_windows = false, + -- filetypes that you want to prevent from adding to the harpoon list menu. + excluded_filetypes = { "harpoon" }, + -- set marks specific to each git branch inside git repository + mark_branch = false, + }) + end + }, + { 'ray-x/web-tools.nvim', config = function() @@ -132,6 +155,7 @@ return { }, }, config = function() + require("telescope").load_extension('harpoon') vimp.noremap({ 'silent' }, 'ff', [[:Telescope find_files]]) vimp.noremap({ 'silent' }, 'fg', [[:Telescope live_grep]]) vimp.noremap({ 'silent' }, 'fb', [[:Telescope buffers]])