summaryrefslogtreecommitdiff
path: root/lua/talha/plugins/harpoon.lua
diff options
context:
space:
mode:
authortalha <talha@talhaamir.xyz>2025-12-06 15:08:59 +0500
committertalha <talha@talhaamir.xyz>2025-12-06 15:08:59 +0500
commit75b48fc3247b412bb1580c47e96022cffdc8ba9a (patch)
tree20f615aae971834ebc1490b41cecdc3d0e9c4a7d /lua/talha/plugins/harpoon.lua
parent26161cefcda38711c7c8e166ccca7478bcaf18f4 (diff)
Updated config structureHEADmain
Diffstat (limited to 'lua/talha/plugins/harpoon.lua')
-rw-r--r--lua/talha/plugins/harpoon.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/lua/talha/plugins/harpoon.lua b/lua/talha/plugins/harpoon.lua
new file mode 100644
index 0000000..96bbbcd
--- /dev/null
+++ b/lua/talha/plugins/harpoon.lua
@@ -0,0 +1,17 @@
+return {
+ {
+ "theprimeagen/harpoon",
+ config = function()
+ local mark = require("harpoon.mark")
+ local ui = require("harpoon.ui")
+
+ vim.keymap.set("n", "<leader>a", mark.add_file)
+ vim.keymap.set("n", "<C-e>", ui.toggle_quick_menu)
+
+ vim.keymap.set("n", "<C-f>1", function() ui.nav_file(1) end)
+ vim.keymap.set("n", "<C-f>2", function() ui.nav_file(2) end)
+ vim.keymap.set("n", "<C-f>3", function() ui.nav_file(3) end)
+ vim.keymap.set("n", "<C-f>4", function() ui.nav_file(4) end)
+ end
+ }
+}