kevinhwang91 / nvim-ufo

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

Single-line folds aren't handled #9

Closed romgrk closed 2 years ago

romgrk commented 2 years ago

Neovim version (nvim -v | head -n1)

0.8.0-dev

Operating system/version

archlinux

How to reproduce the issue

Open a file with single line folds and close all folds.

local dict = {
    a = 1,
    b = {
        c = 2,
    },
    d = { e = 3 }
}

Expected behavior

All folds use the ufo style.

Actual behavior

image

kevinhwang91 commented 2 years ago

Expected. Show a use case for single fold line please.

romgrk commented 2 years ago

None, but it's annoying that some folds have a different style when I close them all.

kevinhwang91 commented 2 years ago

set foldminlines=1 will never close the single folded line.

romgrk commented 2 years ago

Got it, thanks.