-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support empty foldtext in nvim 0.10
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
- Loading branch information
1 parent
4036c8a
commit 1696ea4
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters