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
{{ message }}
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
Hey, @unnamed42. Thanks for creating this issue. I've also experienced problems with lazy loading color_coded and have typically just disabled the lazy loading, so I never looked much into it.
Both VimEnter and ColorScheme are captured there, since we want to reload color_coded whenever the colorscheme changes and we also want to load it on startup (or do we?). Perhaps a better solution is to use another event which only triggers upon the plugin being loaded. I'm not too sure of how to hygienically lazy load plugins at this moment; do you know of some better suited events we should hook instead?
According to the wiki page, when some plugin is lazy loaded, vim-plug will fire a User event whose name is the same as the plugin. So I add a line after syntax loader:
au User color_coded source $VIMHOME/after/syntax/color_coded.vim
As is described in title, vim-plug won't load
after/syntax/color_coded.vim
if is set to lazy loading, like:I've found the code for loading syntax, in
plugin/color_coded.vim
:Maybe both
VimEnter
andColorScheme
are not captured.The text was updated successfully, but these errors were encountered: