summaryrefslogtreecommitdiff
path: root/lua/talha/plugins/harpoon.lua
blob: 7a5501b171f33b3e28fc9f6f2d76dd02a74561d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
return {
    {
	"theprimeagen/harpoon",
	config = function()
	    local mark = require("harpoon.mark")
	    local ui = require("harpoon.ui")

	    vim.keymap.set("n", "<C-j><C-a>", mark.add_file)
	    vim.keymap.set("n", "<C-j><C-m>", ui.toggle_quick_menu)

	    vim.keymap.set("n", "<C-j>1", function() ui.nav_file(1) end)
	    vim.keymap.set("n", "<C-j>2", function() ui.nav_file(2) end)
	    vim.keymap.set("n", "<C-j>3", function() ui.nav_file(3) end)
	    vim.keymap.set("n", "<C-j>4", function() ui.nav_file(4) end)
	end
    }
}