From 07cca27cf14a458c469a759c897124f78d953db0 Mon Sep 17 00:00:00 2001 From: mpaulson Date: Wed, 6 Dec 2023 07:00:46 -0700 Subject: [PATCH] feat: better logging for toggle --- lua/harpoon/ui.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/harpoon/ui.lua b/lua/harpoon/ui.lua index 66e682c..4cd598e 100644 --- a/lua/harpoon/ui.lua +++ b/lua/harpoon/ui.lua @@ -107,9 +107,9 @@ end ---@param list? HarpoonList function HarpoonUI:toggle_quick_menu(list) - Logger:log("ui#toggle_quick_menu", list and list.name) if list == nil or self.win_id ~= nil then + Logger:log("ui#toggle_quick_menu#closing", list and list.name) if self.settings.save_on_toggle then self:save() end @@ -117,6 +117,7 @@ function HarpoonUI:toggle_quick_menu(list) return end + Logger:log("ui#toggle_quick_menu#opening", list and list.name) local win_id, bufnr = self:_create_window() self.win_id = win_id