diff --git a/lua/leetcode/logger/spinner/init.lua b/lua/leetcode/logger/spinner/init.lua index ae19c39..5afee3e 100644 --- a/lua/leetcode/logger/spinner/init.lua +++ b/lua/leetcode/logger/spinner/init.lua @@ -1,5 +1,6 @@ local config = require("leetcode.config") local t = require("leetcode.translator") +local log = require("leetcode.logger") ---@class lc.Spinner ---@field spinner lc.spinner | nil @@ -73,11 +74,14 @@ function spinner:set(msg, lvl, opts) end lvl = lvl or vim.log.levels.INFO + local id = self.noti and (self.noti.id or self.noti) + opts = vim.tbl_deep_extend("force", { hide_from_history = true, title = config.name, timeout = false, - replace = self.noti, + replace = id, + id = id, }, opts or {}) self.noti = vim.notify(self.msg, lvl, opts)