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