summaryrefslogtreecommitdiff
path: root/lua/aotrix/plugins
diff options
context:
space:
mode:
authorAotrix <[email protected]>2026-04-12 15:50:36 +0200
committerAotrix <[email protected]>2026-04-12 15:50:36 +0200
commit4d7ae4517f5ba37953e4df4196c349198c681dd6 (patch)
treeef5910d4c40fc43d5c9e795b79475315667d6db7 /lua/aotrix/plugins
parent7f49ae434453b89a40f6c7435683c9da46113fa5 (diff)
Add harpoon again...
Diffstat (limited to 'lua/aotrix/plugins')
-rw-r--r--lua/aotrix/plugins/harpoon.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/lua/aotrix/plugins/harpoon.lua b/lua/aotrix/plugins/harpoon.lua
new file mode 100644
index 0000000..69d1766
--- /dev/null
+++ b/lua/aotrix/plugins/harpoon.lua
@@ -0,0 +1,22 @@
+return {
+ 'ThePrimeagen/harpoon',
+ branch = "harpoon2",
+ dependencies = {'nvim-lua/plenary.nvim'},
+ config = function()
+ local harpoon = require("harpoon")
+ harpoon.setup({
+ settings = {
+ -- sets the marks upon calling `toggle` on the ui, instead of require `:w`.
+ save_on_toggle = true
+ }
+ })
+ vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end)
+ vim.keymap.set("n", "<leader>hv", 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-l>", function() harpoon:list():select(2) end)
+ vim.keymap.set("n", "<C-g>", function() harpoon:list():select(3) end)
+ vim.keymap.set("n", "<C-m>", function() harpoon:list():select(4) end)
+ end
+}