diff options
Diffstat (limited to 'lua/aotrix')
| -rw-r--r-- | lua/aotrix/plugins/harpoon.lua | 22 |
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 +} |
