lazy load harpoon

This commit is contained in:
cool-mist
2024-04-07 23:45:55 +05:30
parent 3e57449f50
commit 94502eca9f
+5 -8
View File
@@ -247,14 +247,11 @@ lazy.setup({
"ThePrimeagen/harpoon", "ThePrimeagen/harpoon",
branch = "harpoon2", branch = "harpoon2",
dependencies = { "nvim-lua/plenary.nvim" }, dependencies = { "nvim-lua/plenary.nvim" },
config = function() config = true,
local harpoon = require("harpoon") keys = {
harpoon.setup({}) { '<leader>hh', function() require("harpoon").ui:toggle_quick_menu(require("harpoon"):list()) end, desc = "[H]arpoon [H]ome" },
{ '<leader>ha', function() require("harpoon"):list():append() end, desc = "[H]arpoon [A]ppend" },
local opts = { noremap = true, silent = true } },
V.keymap.set('n', '<leader>hh', function() harpoon.ui:toggle_quick_menu(harpoon:list()) end, opts)
V.keymap.set('n', '<leader>ha', function() harpoon:list():append() end, opts)
end
}, },
--------------- ---------------