kevinhwang91 / nvim-ufo

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

Add option to get virtual text of the end fold line. #130

Closed kamack38 closed 1 year ago

kamack38 commented 1 year ago

Feature description

This feature would allow users to apply syntax highlighting to the end fold line.

Describe the solution you'd like

local handler = function(virtTextStart, virtTextEnd, ...)
...
end

Additional context

No response

kevinhwang91 commented 1 year ago

enable_get_fold_virt_text

https://github.com/kevinhwang91/nvim-ufo/blob/9e829d5cfa3de6a2ff561d86399772b0339ae49d/doc/example.lua#L172-L182

kamack38 commented 1 year ago

Thank you very much!