rebelot / heirline.nvim

Heirline.nvim is a no-nonsense Neovim Statusline plugin designed around recursive inheritance to be exceptionally fast and versatile.
MIT License
968 stars 38 forks source link

root condition does not work #153

Closed kyoh86 closed 1 year ago

kyoh86 commented 1 year ago

Although condition returns false, winbar is there. Sure, there's no contents in winbar, but the area is secured.

e.g.

setup({
    winbar = {
        condition = function()
            return false
        end
        provider = "foo"
    }
})

I expect it deletes winbar, but there's invisible winbar.

kyoh86 commented 1 year ago

I could solved the issue. We can use opts.disable_winbar_cg instead of the root condition.