Closed kandodev closed 1 year ago
Make sure your foldlevel
is large. foldlevelstart=99
may help.
I want to start out with all folds closed though. My foldlevel is already large. Setting start to 99 fixes it but Is there no option where I can start out that way and have ufo work for me?
https://github.com/kevinhwang91/nvim-ufo/issues/83#issuecomment-1259382127 Apply folds in ufo is always async, so need to invoke ufo API by yourself.
Neovim version (nvim -v | head -n1)
NVIM v0.8.0-dev-922-g42e9fe7d9
Operating system/version
linux/mac
How to reproduce the issue
Config
I do not want ufo to dynamically open or close folds. I want to do that manually. However, when I enable ufo, whenever I save a file or go from insert -> normal mode, all my folds get automatically closed.
If I don't start ufo with
require('ufo').setup()
, everything works as expectedExpected behavior
Folds remain untouched when I don't open/close them
Actual behavior
Folds are closed automatically