lukas-reineke / indent-blankline.nvim

Indent guides for Neovim
MIT License
4.14k stars 102 forks source link

feat: support empty foldtext in nvim 0.10 #902

Closed lukas-reineke closed 3 months ago

lukas-reineke commented 3 months ago

Neovim 0.10 changed the behavior for when 'foldtext' is empty. It now displays the line normally with highlighting.

vim.fn.foldtextresult does however not reflect this change and returns the previous foldtext, like +-- 4 lines folded. This breaks the current implementation which checks if indentation lines can be displayed over the foldtext.

So until (if ever) this gets fixed, we need to do a custom check.

fix #901