Closed 0-issue closed 1 year ago
Don't call :AsyncRun
or asyncrun#run
during loading.
@skywind3000 Is there a workaround? I call it after call plug#end()
of vim-plug. Also, why does calling a function during load time from .vimrc does not work for asyncrun.vim but does for other plugins??
add this:
runtime plugin/asyncrun.vim
after call plug#end()
@skywind3000 Now I multiple errors like this:
Error detected while processing function AsyncRun_Job_OnTimer:
line 11:
E716: Key not present in Dictionary: "once == 0"
sorry, you need call them after VimEnter
auto command:
au VimEnter * call asyncrun#run(...)
@skywind3000 Ok thanks!
When I have
asyncrun#run
inside .vimrc, it throws an error when starting vim. But when I run the same function using:call asyncrun#run
after vim/nvim loads, it works fine... Here's the output:I am using vim-plug package manager, and other plugin's functions work well in .vimrc. This is the first plugin whose API is not detected in .vimrc.
System info: