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]])