Closed smallpondtom closed 2 years ago
No, you are wrong. vim.schedule_wrap
is for another, see :help lua-loop-callbacks
.
Can you give a minimal config to reproduce the error?
Can your try
function M.warn(msg)
vim.schedule(vim.schedule_wrap(function()
vim.notify_once('[pretty-fold.nvim] '..msg, vim.log.levels.WARN)
end))
end
Can your try
function M.warn(msg) vim.schedule(vim.schedule_wrap(function() vim.notify_once('[pretty-fold.nvim] '..msg, vim.log.levels.WARN) end)) end
Unfortunately that still throws the same error.
Maybe you don't have notify_once
function? Can you check? Try to replace it with notify
.
oh you're right. That fixed it. Thanks. By the way, I use Nvim v0.6.1
Fixed in 9075011481e6c48beb4cbb4a3009c421d1a01d3e
I am getting this error message whenever entering my neovim
This should be solved by changing
at line 11 in util.lua to
Since this way it defers
callback
until the Nvim API is safe to call.