diff --git a/lua/theprimeagen/lazy/harpoon.lua b/lua/theprimeagen/lazy/harpoon.lua new file mode 100644 index 00000000..aca99f30 --- /dev/null +++ b/lua/theprimeagen/lazy/harpoon.lua @@ -0,0 +1,35 @@ +return { + { + "ThePrimeagen/harpoon", + branch = "harpoon2", + dependencies = { "nvim-lua/plenary.nvim" }, + config = function() + local harpoon = require("harpoon") + + harpoon:setup() + + vim.keymap.set("n", "A", function() + harpoon:list():prepend() + end) + vim.keymap.set("n", "a", function() + harpoon:list():add() + end) + vim.keymap.set("n", "", function() + harpoon.ui:toggle_quick_menu(harpoon:list()) + end) + + vim.keymap.set("n", "", function() + harpoon:list():select(1) + end) + vim.keymap.set("n", "", function() + harpoon:list():select(2) + end) + vim.keymap.set("n", "", function() + harpoon:list():select(3) + end) + vim.keymap.set("n", "", function() + harpoon:list():select(4) + end) + end, + }, +} diff --git a/lua/theprimeagen/lazy/local.lua b/lua/theprimeagen/lazy/local.lua index 36f14a78..9088bd26 100644 --- a/lua/theprimeagen/lazy/local.lua +++ b/lua/theprimeagen/lazy/local.lua @@ -20,40 +20,6 @@ local local_plugins = { "the-stru", dir = "~/personal/the-stru", }, - - { - "harpoon", - dir = "~/personal/harpoon", - config = function() - local harpoon = require("harpoon") - - harpoon:setup() - - vim.keymap.set("n", "A", function() - harpoon:list():prepend() - end) - vim.keymap.set("n", "a", function() - harpoon:list():add() - end) - vim.keymap.set("n", "", function() - harpoon.ui:toggle_quick_menu(harpoon:list()) - end) - - vim.keymap.set("n", "", function() - harpoon:list():select(1) - end) - vim.keymap.set("n", "", function() - harpoon:list():select(2) - end) - vim.keymap.set("n", "", function() - harpoon:list():select(3) - end) - vim.keymap.set("n", "", function() - harpoon:list():select(4) - end) - end, - }, - } return local_plugins