Skip to content

doc; improve the documentation on/clarify on vimtex's folding feature #2547

@krishnakumarg1984

Description

@krishnakumarg1984

The documentation on foldin currenty says:

FOLDING vimtex-folding
vimtex-bib-folding

VimTeX 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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions