-
Notifications
You must be signed in to change notification settings - Fork 407
doc; improve the documentation on/clarify on vimtex's folding feature #2547
Description
The documentation on foldin currenty says:
FOLDING vimtex-folding
vimtex-bib-foldingVimTeX can fold documents according to the LaTeX structure (part, chapter,
section and subsection). Folding in tex files is turned off by default, but
can be enabled if desired, either through the option |g:vimtex_fold_enabled|,
or manually with >set foldmethod=expr
set foldexpr=vimtex#fold#level(v:lnum)
set foldtext=vimtex#fold#text()
What is unclear is that, does the g:vimtex_fold_enabled variable automatically influence these three options simultaneously? i.e. setting it causes these 3 variables to be set to the above values?
Also, does setting this single option override these above settings only for tex and bib files? That means all other buffer types in the currn project foder will retain the settings that I have configured elsewhere in my vimrc, right?
Shall appreciate a bit more clarification around these aspects in the documentation.