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

Minimum lines #108

Closed kiyoon closed 1 year ago

kiyoon commented 1 year ago

Feature description

I almost never want to fold just 1 line. So I set vim.o.foldminlines = 15. With this I still see the fold buttons, and if I click those or fold using za it folds the larger context. With Treesitter folding it worked.

https://user-images.githubusercontent.com/12980409/215920383-7208a0bb-6ae3-4d2e-8a65-feb334917cb8.mp4

Describe the solution you'd like

Respect the option value.

Additional context

No response

kevinhwang91 commented 1 year ago

Do you want to hide the icon in foldcolumn less than foldminlines ?

kiyoon commented 1 year ago

Yes, that's what I want.

kiyoon commented 1 year ago

Thanks for the really quick fix. Works really well now!