From 79fed97f2357b2969cb23d106137978ca7cdffb4 Mon Sep 17 00:00:00 2001 From: Alan Alvarenga <48456822+alan-alvarenga-telus@users.noreply.github.com> Date: Mon, 22 Apr 2024 01:45:59 -0600 Subject: [PATCH] fix(harpoon): harpoon2 deprecated message (#2920) * fix(config): harpoon2 deprecated message when adding new file to list and fix auto save on file list toggle * fix: Update harpoon2.lua to add pleanery dep * fix: no need for plenary deps here --------- Co-authored-by: Alan Alvarenga Co-authored-by: Rubin Bhandari Co-authored-by: Folke Lemaitre --- lua/lazyvim/plugins/extras/editor/harpoon2.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lua/lazyvim/plugins/extras/editor/harpoon2.lua b/lua/lazyvim/plugins/extras/editor/harpoon2.lua index 666f7d58..760d805a 100644 --- a/lua/lazyvim/plugins/extras/editor/harpoon2.lua +++ b/lua/lazyvim/plugins/extras/editor/harpoon2.lua @@ -5,13 +5,16 @@ return { menu = { width = vim.api.nvim_win_get_width(0) - 4, }, + settings = { + save_on_toggle = true, + }, }, keys = function() local keys = { { "H", function() - require("harpoon"):list():append() + require("harpoon"):list():add() end, desc = "Harpoon File", }, @@ -22,7 +25,7 @@ return { harpoon.ui:toggle_quick_menu(harpoon:list()) end, desc = "Harpoon Quick Menu", - } + }, } for i = 1, 5 do @@ -35,5 +38,5 @@ return { }) end return keys - end + end, }