From 7d759edf68303c7681a6521fbc3675661204cd4f Mon Sep 17 00:00:00 2001 From: Ibrahim Muftee Date: Tue, 24 Jun 2025 11:26:15 -0500 Subject: feat(nvim): replace old config with new one --- dot_config/nvim/lua/ibrahim/plugins/harpoon.lua | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 dot_config/nvim/lua/ibrahim/plugins/harpoon.lua (limited to 'dot_config/nvim/lua/ibrahim/plugins/harpoon.lua') diff --git a/dot_config/nvim/lua/ibrahim/plugins/harpoon.lua b/dot_config/nvim/lua/ibrahim/plugins/harpoon.lua new file mode 100644 index 0000000..695b69c --- /dev/null +++ b/dot_config/nvim/lua/ibrahim/plugins/harpoon.lua @@ -0,0 +1,30 @@ +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():add() + end, { desc = "Mark file with Harpoon" }) + + vim.keymap.set("n", "", function() + harpoon.ui:toggle_quick_menu(harpoon:list()) + end, { desc = "Open Harpoon menu" }) + + vim.keymap.set("n", "j", function() + harpoon:list():select(1) + end, { desc = "Open Harpoon file 1" }) + vim.keymap.set("n", "k", function() + harpoon:list():select(2) + end, { desc = "Open Harpoon file 2" }) + vim.keymap.set("n", "l", function() + harpoon:list():select(3) + end, { desc = "Open Harpoon file 3" }) + vim.keymap.set("n", ";", function() + harpoon:list():select(4) + end, { desc = "Open Harpoon file 4" }) + end, +} -- cgit v1.2.3