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 folding to arrays #135

Closed TiLopes closed 1 year ago

TiLopes commented 1 year ago

Feature description

In VSCodium you are able to fold an array: Before: After:
image image
However when doing the same in neovim with this plugin it simply folds the top level folding option: Before: After:
image image

Describe the solution you'd like

Just fold the elements on the array.

Additional context

Using LunarVim with this plugin installed. Fold settings: image

nvim-ufo config: image

kevinhwang91 commented 1 year ago

What's the filetype of the buffer? Does UfoInspect output Selected provider: lsp?