summaryrefslogtreecommitdiff
path: root/lua/aotrix/plugins
diff options
context:
space:
mode:
authorAotrix <[email protected]>2025-10-24 22:14:44 +0200
committerAotrix <[email protected]>2025-10-24 22:14:44 +0200
commite1723f74f6087419a536aa459e1f871438f0b821 (patch)
treea6603b7f5569e16391c79c6a870819fa5fe435cb /lua/aotrix/plugins
parenta328b558f62f2400bf1d60d663bb644a9016b463 (diff)
updated harpoon config
Diffstat (limited to 'lua/aotrix/plugins')
-rw-r--r--lua/aotrix/plugins/harpoon.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/lua/aotrix/plugins/harpoon.lua b/lua/aotrix/plugins/harpoon.lua
index 5c984f0..826e91a 100644
--- a/lua/aotrix/plugins/harpoon.lua
+++ b/lua/aotrix/plugins/harpoon.lua
@@ -4,7 +4,13 @@ return {
dependencies = { 'nvim-lua/plenary.nvim' },
config = function()
local harpoon = require("harpoon")
- harpoon:setup()
+ harpoon.setup({
+ settings = {
+ -- sets the marks upon calling `toggle` on the ui, instead of require `:w`.
+ save_on_toggle = true,
+ sync_on_ui_close = 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)