kevinhwang91 / nvim-ufo

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

Code comments about what example fold_virt_text_handler is doing #98

Closed technicalpickles closed 1 year ago

technicalpickles commented 1 year ago

Feature description

I am just starting out with ufo, and I’m having trouble understanding what exactly the example fold_virt_text_handler does, and how it is doing it. From the screenshot and the code, it looks like it’s adding virtual text with the number of lines in the fold?

Describe the solution you'd like

Some description of what the example customization is doing, and code comments about what some of the inputs / changes are.

Additional context

No response

kevinhwang91 commented 1 year ago

Yes, feel free to update the docs :)

technicalpickles commented 1 year ago

That helps, thank you!