kevinhwang91 / nvim-ufo

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

feat(provider): marker provider #218

Open LucasAVasco opened 1 month ago

LucasAVasco commented 1 month ago

Add a provider that can fold generic markers. The default ones are:

You can change the markers with the global variable: vim.g.ufo_markers. This provider does not use the 'foldmarker' option because it is limited to only one marker pattern

By default, the provider only tracks markers inside comments to prevent accidental folding. You can enable the folding to markers outside of comments setting the global variable vim.g.ufo_markers_only_comment to false

All folds queried from this provider will have the 'kind' attribute equal to 'ufo_marker'

kevinhwang91 commented 1 month ago

Sorry, there is no time to review the code recently.

LucasAVasco commented 1 month ago

No problem. I am also busy lately