Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(concealer): use vim.treesitter.foldexpr for stabler folding #1222

Merged
merged 2 commits into from
Dec 28, 2023

Conversation

champignoom
Copy link
Contributor

vim.treesitter.foldexpr() behaves more stably than nvim_treesitter#foldexpr()

@vhyrro
Copy link
Member

vhyrro commented Dec 26, 2023

How recent is vim.treesitter.foldexpr? Should we maybe have a fallback to the old function in case the user is running a version that doesn't have this API (vim.treesitter.foldexpr and "foldexpr" or "fallback")? Neorg should work for 0.8 and above :)

@vhyrro vhyrro merged commit 5921cc4 into nvim-neorg:main Dec 28, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants