neoclide / coc-vimtex

vimtex integration for coc.nvim
130 stars 4 forks source link

some times vimtex don't work #13

Closed Unknown-Chinese-User closed 4 years ago

Unknown-Chinese-User commented 4 years ago

I usually write a file that only contain main body without Macro packages, but every time I nvim it, the coc-vimtex doesn't work. The error message is [coc.nvim]vimtex not loaded(I'm sorry, it seems that I can't upload image now) but when I edit the main.tex, the coc-vimtex works normally.

Unknown-Chinese-User commented 4 years ago

By the way, it seems that the snippets also don't work

chemzqm commented 4 years ago

The plugin not loaded by vim

Unknown-Chinese-User commented 4 years ago

The plugin not loaded by vim

what do you mean? I use nvim. I think this is because I didn't use it properly, but I cannot find where is my fault.

Unknown-Chinese-User commented 4 years ago

@chemzqm I made a conversation in zhihu. Please reply me at zhihu

chemzqm commented 4 years ago

You have to make sure vimtex is in your $rtp, use :echo &rtp

Unknown-Chinese-User commented 4 years ago

I'm sure I have vimtex, because the autocompete is okay when I open a nomal tex file(which contains \documentclass \begin{document} and \end{document})

Unknown-Chinese-User commented 4 years ago

when I shut down the vimtex plug, the same error is reported in the main file ,I think this is because vimtex fails to load in the new file. Maybe I need to rise a new issue in vimtex

chemzqm commented 4 years ago

Use :echo g:vimtex#re#deoplete

chemzqm commented 4 years ago

Should be problem of your lazyload by vim-plug or other plugin.