vim.fn["vimtex#env#is_inside"]("document")
not working when working on an \include
-ed files that lack a \begin{document}
#3037
Labels
Description
After writing into the main-file
\include{eras/period1}
to include a sub-fileperiod1.tex
stored in /eras/, VimTeX doesn't recognize how typing into the sub-fileeras/period1.tex
works as a document, and that the sub-file doesn't require\begin{document}
nor\end{document}
.As such, my LuaSnip snippets which depend on
vim.fn["vimtex#env#is_inside"]("document")
don't show up when editingeras/period1
, since it can't find the\begin{document}
.Steps to reproduce
include
statement i.e.\include{subfolder/chapter1}
subfolder
chapter1.tex
Expected behavior
for vim.fn"vimtex#env#is_inside" to be evaluated as true and my snippets seen
Actual behavior
this doesn't happen
Do you use a latexmkrc file?
No
VimtexInfo
The text was updated successfully, but these errors were encountered: