Hi,
On Tue, Feb 22, 2022 at 5:06 AM Shane-XB-Qian <[email protected]>
wrote:
> that func should be in a autoload fs, then in plugin registers a init
> call foo#watch() to call that func:
>
> function! foo#watch() abort
> let s:timer = timer_start(0, function('s:watch_callback'))endfunction
>
>
Where is the s:watch_callback() function defined? Is it in the plugin file
or in the
autoload file? If it is defined in the autoload file, then you cannot use
it from the
plugin file (as it is script local to the autoload file).
- Yegappan
> perhaps can be using tpop's pathogen to test that.
> // but yea, i am not sure if that's a minimal case which to be reproduce,
> or then should wait someone else if met and simply it.. :-(
>
>
>
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/CAAW7x7mUcbRdftwmmw0Coevtk6UnjN%3D6pZopqNgZy1uAkBfxHg%40mail.gmail.com.