-
-
Notifications
You must be signed in to change notification settings - Fork 221
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: don't use deprecated query.get_node_text()
call
#1067
fix: don't use deprecated query.get_node_text()
call
#1067
Conversation
…ode_text to prevent deprecation warning message when entering presenter mode.
Seems like the failing lint check is not due to my changes. Unless I need to fix it to be merged, I will leave it be. |
Whoa, this is odd. What Neovim version are you running? The nvim-treesitter crew literally just deprecated |
that's really odd |
Update: I've had no time to actually test this out on my end yet which is why it's taking so long to commit. I should have some spare time tomorrow! |
Wow they deprecated quite a few things actually, I'll make patches for the other deprecated functions too. Thank you for the PR and sorry for the wait! |
query.get_node_text()
call
No need to apologize! Happy to help. |
When I entered presenter mode in Neorg, I would receive a deprecation warning about
vim.treesitter.query.get_node_text
,along with a suggestion to replace it with
vim.treesitter.get_node_text
. This PR does exactly that and only that.