From e1723f74f6087419a536aa459e1f871438f0b821 Mon Sep 17 00:00:00 2001 From: Aotrix <9aotrix@protonmail.com> Date: Fri, 24 Oct 2025 22:14:44 +0200 Subject: updated harpoon config --- lua/aotrix/plugins/harpoon.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lua/aotrix/plugins/harpoon.lua') 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", "a", function() harpoon:list():add() end) vim.keymap.set("n", "hv", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) vim.keymap.set("n", "", function() harpoon:list():select(1) end) -- cgit v1.2.3