Closed mars90226 closed 1 year ago
Thanks for giving my plugin a try :), you're correct vim functions can't be called inside a lua callback but I didn't realize it because I am using noice lol. I think wrapping notify functions is the only solution, thanks for the report! I'll fix it right away.
87be468 should fix it.
I can confirm the bug is fixed, thanks!
First, thanks for this plugin! I cannot count how many time I need to switch between neovim & browser to docs.
This bug is that when executing
:DevdocsFetch
, neovim raiseE5560: nvim_echo must not be called in a lua loop callback
with the following stack traceback:I think the problem is using
vim.notify()
whenhit-enter-prompt
is active. This problem may not occur when usingnoice.nvim
because it changesvim.notify()
's implementation. I can temporarily fix it by wrappingvim.notify()
withvim.schedule_wrap()
, but I'm not sure if it's the correct fix.