kevinhwang91 / nvim-ufo

Not UFO in the sky, but an ultra fold in Neovim.
BSD 3-Clause "New" or "Revised" License
2.23k stars 44 forks source link

documentation required: folding all on initial open #69

Closed rbutera closed 1 year ago

rbutera commented 1 year ago

Feature description

After I installed nvim-ufo using the treesitter method and the suggested settings, all files opened in nvim are automatically folded to the max when initially opened.

nvim-ufo documentation does not make this clear whether or not this is expected behaviour, and/or whether this is configurable.

Describe the solution you'd like

This issue should be clarified in documentation

Additional context

No response

kevinhwang91 commented 1 year ago

Using a provider of ufo, must set a large value for foldlevel, this is the limitation of foldmethod=manual. A small value may close fold automatically if the fold ranges updated