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(meta): fix treesitter deprecation warning (#1104) #1130

Merged
merged 1 commit into from
Oct 29, 2023

Conversation

benatouba
Copy link
Contributor

@benatouba benatouba commented Oct 27, 2023

Treesitters for_each_child() will be deprecated in 0.11. It ias encouraged to use children() and implement the recursion yourself.

We use a loop to iterate over the tree's children and call the usual function for each child.

fixes #1104

I am new to lua and this project, so please double check whether this is the behaviour you want. I am not sure if the recursion works.

Treesitters `for_each_child()` will be deprecated in 0.11.
It ias encouraged to use `children()` and implement the recursion
yourself.

We use a loop to iterate over the tree's children and call the
usual function for each child.

fixes nvim-neorg#1104
@vhyrro
Copy link
Member

vhyrro commented Oct 29, 2023

Thanks a lot for the fix :D

@vhyrro vhyrro changed the title fix(meta): fix treesitter integration (#1104) fix(meta): fix treesitter deprecation warning (#1104) Oct 29, 2023
@vhyrro vhyrro merged commit 5205f3f into nvim-neorg:main Oct 29, 2023
1 check 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.

"LanguageTree:for_each_child() is deprecated, use LanguageTree:children() instead."
2 participants