feat: better logging for toggle

This commit is contained in:
mpaulson 2023-12-06 07:00:46 -07:00
parent b66e92d4f5
commit 07cca27cf1

View File

@ -107,9 +107,9 @@ end
---@param list? HarpoonList ---@param list? HarpoonList
function HarpoonUI:toggle_quick_menu(list) 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 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 if self.settings.save_on_toggle then
self:save() self:save()
end end
@ -117,6 +117,7 @@ function HarpoonUI:toggle_quick_menu(list)
return return
end end
Logger:log("ui#toggle_quick_menu#opening", list and list.name)
local win_id, bufnr = self:_create_window() local win_id, bufnr = self:_create_window()
self.win_id = win_id self.win_id = win_id