summaryrefslogtreecommitdiff
path: root/lua/plugins/harpoon.lua
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-05-23 01:06:50 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2024-05-23 01:06:50 -0400
commit1c0ac26114e249548dfdd270a07bc2336a37b6e2 (patch)
tree67a9a69b8de26b6ecb9008a0d992e865d1fc12c2 /lua/plugins/harpoon.lua
parent796db1e83d41d25a277c46c968a168702c1f3eb8 (diff)
Massive simplification
Diffstat (limited to 'lua/plugins/harpoon.lua')
-rw-r--r--lua/plugins/harpoon.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/lua/plugins/harpoon.lua b/lua/plugins/harpoon.lua
new file mode 100644
index 0000000..a6d4535
--- /dev/null
+++ b/lua/plugins/harpoon.lua
@@ -0,0 +1,20 @@
+return {
+ "theprimeagen/harpoon",
+ branch = "harpoon2",
+ dependencies = {"nvim-lua/plenary.nvim"},
+ config = function()
+ local harpoon = require("harpoon")
+ harpoon:setup()
+
+ vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end )
+ vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end )
+
+ vim.keymap.set("n", "<C-h>", function() harpoon:list():select(1)end )
+ vim.keymap.set("n", "<C-j>", function() harpoon:list():select(2)end )
+ vim.keymap.set("n", "<C-k>", function() harpoon:list():select(3)end )
+ vim.keymap.set("n", "<C-l>", function() harpoon:list():select(4)end )
+
+ vim.keymap.set("n", "<C-S-P>", function() harpoon:list():prev() end)
+ vim.keymap.set("n", "<C-S-P>", function() harpoon:list():next() end)
+ end,
+}