Is it possible to persist folds? #1931
-
Contributing guidelines
Module(s)mini.sessions QuestionHello, I'm using mini.sessions + nvim-ufo. I've a question - is it possible to configure I tried adding |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Unfortunately, I don't think there is anything 'mini.sessions' specific that can be done here. It explicitly uses built-in sessions and this is what should be used to adjust here. If 'sessionoptions' doesn't work, then it might be an issue with 'nvim-ufo'. For what it is worth, with If there is some function/hook that 'nvim-ufo' requires to be executed in such cases, you can use it by defining |
Beta Was this translation helpful? Give feedback.
Unfortunately, I don't think there is anything 'mini.sessions' specific that can be done here. It explicitly uses built-in sessions and this is what should be used to adjust here. If 'sessionoptions' doesn't work, then it might be an issue with 'nvim-ufo'.
For what it is worth, with
foldmethod=indent
fold state is saved between sessions (if fold was closed/open when writing session, it appears the same after reading session next time).If there is some function/hook that 'nvim-ufo' requires to be executed in such cases, you can use it by defining
config.hooks.post.read
and orconfig.hooks.pre.write
.