Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E121: Undefined variable: g:tsuquyomi_javascript_support with syntax on before filetype plugin on #317

Open
kevinoid opened this issue Aug 3, 2022 · 0 comments

Comments

@kevinoid
Copy link

kevinoid commented Aug 3, 2022

With Neovim v0.7.2 and tsuquyomi master (8f6e246), if syntax on occurs before filetype plugin on in vimrc/init.vim, an error occurs. To reproduce:

cat >vimrc <<'VIMRC'
let &packpath = expand('<sfile>:p:h')
syntax on
filetype plugin on
VIMRC
mkdir -p pack/foo/start
git -C pack/foo/start clone https://github.com/Quramy/tsuquyomi.git
nvim -u vimrc file.js

Which produces the following errors:

Error detected while processing /tmp/tmp.Tw69eTNqLR/pack/foo/start/tsuquyomi/ftplugin/javascript/tsuquyomi.vim:
line    8:
E121: Undefined variable: g:tsuquyomi_javascript_support
Error detected while processing function vital#of:
line    4:
E605: Exception not caught: vital: version file not found: tsuquyomi
E605: Exception not caught: vital: version file not found: tsuquyomi
Error detected while processing /tmp/tmp.Tw69eTNqLR/pack/foo/start/tsuquyomi/ftplugin/javascript/tsuquyomi.vim:
line   12:
E171: Missing :endif
Error detected while processing function <SNR>1_LoadFTPlugin:
line   17:
E170: Missing :endfor
Error detected while processing /usr/share/nvim/runtime/syntax/syntax.vim:
line   42:
E171: Missing :endif

I bisected the regression to 13efb82 from #80

Thanks,
Kevin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant