Closed Karmenzind closed 1 year ago
There are many context need to expose to users.
foldtext()
only depend on string. but the content of the fold is actually virt_text that depends on a list of {text, highlight }
.
The color folds are not the standard of ufo, ufo should respect virt_text with extmarks api.
If you think 37 loc is large for you, I think the default style is not bad compared with the raw foldtext()
.
Feature description
The lua config file is too long. Now I have to add 37 more lines to set the folding text. Please provide a more compact option to set the folding text. Like this:
Or a function like the builtin
foldtext()
in vim which is only about the string itself.Thanks a lot.
Describe the solution you'd like
Maybe you can wrap the handler function example as a default folding template accepting a format string, and provide an option to set it. It will be good enough for many people and we only need to write one line.
Additional context
No response