diff --git a/lua/lazy-config.lua b/lua/lazy-config.lua index 448d7cd5..4320501e 100644 --- a/lua/lazy-config.lua +++ b/lua/lazy-config.lua @@ -32,8 +32,8 @@ require('lazy').setup({ require 'plugins_config/mini', -- Collections of useful mini plugins, like around/surround require 'plugins_config/tree-sitter', -- manage lint, indentation and some othe language related tasks - -- Broken configs - -- require 'plugins_config/harpoon', -- Improve workflow for multiple files + -- Broken configs/Testing config + require 'plugins_config/harpoon', -- Improve workflow for multiple files -- keeping comments for annotation -- NOTE: Plugins can also be added by using a table, -- with the first argument being the link and the following diff --git a/lua/plugins_config/harpoon.lua b/lua/plugins_config/harpoon.lua index 5058b17b..b44f5389 100644 --- a/lua/plugins_config/harpoon.lua +++ b/lua/plugins_config/harpoon.lua @@ -1,23 +1,28 @@ return { 'ThePrimeagen/harpoon', - opts = { - -- local mark = require 'harpoon.mark', - -- local ui = require 'harpoon.ui', - -- - -- vim.keymap.set('n', 'a', mark.add_file), - -- vim.keymap.set('n', '', ui.toggle_quick_menu), - -- - -- vim.keymap.set('n', '', function() - -- ui.nav_file(1) - -- end), - -- vim.keymap.set('n', '', function() - -- ui.nav_file(2) - -- end), - -- vim.keymap.set('n', '', function() - -- ui.nav_file(3) - -- end), - -- vim.keymap.set('n', '', function() - -- ui.nav_file(4) - -- end), + dependencies = { + 'nvim-lua/plenary.nvim', }, + config = function() + require('harpoon').setup {} + -- local harpoon = require('harpoon') + local mark = require 'harpoon.mark' + local ui = require 'harpoon.ui' + -- + vim.keymap.set('n', 'a', mark.add_file, { desc = 'Mark a file to be used in harpoon' }) + vim.keymap.set('n', '', ui.toggle_quick_menu, { desc = 'Toogle harpoon quick menu' }) + -- + vim.keymap.set('n', '', function() + ui.nav_file(1) + end, { desc = 'Navigate to first marked file' }) + vim.keymap.set('n', '', function() + ui.nav_file(2) + end, { desc = 'Navigate to first marked file' }) + vim.keymap.set('n', '', function() + ui.nav_file(3) + end, { desc = 'Navigate to first marked file' }) + vim.keymap.set('n', '', function() + ui.nav_file(4) + end, { desc = 'Navigate to first marked file' }) + end, }