You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It can't work, as ftm the host only checks for handlers at startup.
For now you need to define it as a function directly in the class and use vim.command("autocmd ... TheFunction()").
Though not to far in the future we will refactor the rplugin infrastructure to don't need UpdateRemotePlugins anymore, allow new plugins to be re/loaded at runtime and as part of that we should allow plugins to register new handlers at runtime.
it might be a bit inconvenient, but a plugin shouldn't do stuff that has an effect on nvim in __init__ as the plugin has no control when init is run. The proper way is to have a function/command that will be called whenever is the right time (say a FileType, a user command or in a plugin/myplugin.vim if the plugin really needs to start at nvim startup, but a VimEnter autocommand might work for this too).
The following autocmd works if i uncomment self.ensemble from within the init function.
Now if i try doing this from my vimrc..
The ensemble function runs but the autocmd doesn't work.
The text was updated successfully, but these errors were encountered: