kevinhwang91 / nvim-ufo

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

Synchronise folds in all splits #193

Closed Rizhiy closed 5 months ago

Rizhiy commented 5 months ago

Feature description

Currently, if the same buffer is open in two splits toggling fold in one split won't affect the other split. This is particularly annoying if virtual text is enabled. Since virtual text is always shared between splits, as long as one split has the fold open virtual text will be shown.

Describe the solution you'd like

If I open fold in one split, it should also open in all other splits.

Additional context

No response

kevinhwang91 commented 5 months ago

Please use nightly. It will use the new foldtext feature to render fold text.