-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Feature description
Just like there is close_fold_kinds_for_ft, it would be nice to have the same option for levels in general.
Describe the solution you'd like
We should be able to use a close_fold_levels_for_ft config table to specify a map of filetypes to list of levels to close.
Ideally there would be also a possibility to put in a '+' at the end (to close all folds from that level onwards).
Additional context
I haven't found a way to efficiently set a file-specific foldlevel. The problem with using foldlevel at all, is that when I open a fold (zA/za) the fold closes as soon as I finish my edit and go back to normal mode.
Compared to that, closing folds using ufo.closeAllFolds() and then opening them using za keeps them opened even after escaping from insert mode, which I much prefer.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request