mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-28 11:40:13 +02:00
fix(util): proper fix for lazy notify
This commit is contained in:
parent
bbb59d3ffd
commit
83d18dbcee
1 changed files with 2 additions and 2 deletions
|
@ -132,8 +132,8 @@ function M.lazy_notify()
|
|||
table.insert(notifs, vim.F.pack_len(...))
|
||||
end
|
||||
|
||||
vim.notify = temp
|
||||
local orig = vim.notify
|
||||
vim.notify = temp
|
||||
|
||||
local timer = vim.loop.new_timer()
|
||||
local check = vim.loop.new_check()
|
||||
|
@ -146,7 +146,7 @@ function M.lazy_notify()
|
|||
end
|
||||
vim.schedule(function()
|
||||
---@diagnostic disable-next-line: no-unknown
|
||||
for _, notif in ipairs(vim.deepcopy(notifs)) do
|
||||
for _, notif in ipairs(notifs) do
|
||||
vim.notify(vim.F.unpack_len(notif))
|
||||
end
|
||||
end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue