This commit is contained in:
abs3nt 2023-03-08 11:14:02 -08:00
parent 7a453e14fa
commit 2c6ea96981
Signed by: abs3nt
GPG Key ID: FDC6662313FA9386

View File

@ -27,6 +27,29 @@ return {
ft = { "markdown" } 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', 'ray-x/web-tools.nvim',
config = function() config = function()
@ -132,6 +155,7 @@ return {
}, },
}, },
config = function() config = function()
require("telescope").load_extension('harpoon')
vimp.noremap({ 'silent' }, '<leader>ff', [[:Telescope find_files<CR>]]) vimp.noremap({ 'silent' }, '<leader>ff', [[:Telescope find_files<CR>]])
vimp.noremap({ 'silent' }, '<leader>fg', [[:Telescope live_grep<CR>]]) vimp.noremap({ 'silent' }, '<leader>fg', [[:Telescope live_grep<CR>]])
vimp.noremap({ 'silent' }, '<leader>fb', [[:Telescope buffers<CR>]]) vimp.noremap({ 'silent' }, '<leader>fb', [[:Telescope buffers<CR>]])