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

vim.treesitter.query.get_node_text() deprecated #419

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

pyqlsa
Copy link
Contributor

@pyqlsa pyqlsa commented Dec 2, 2023

try new vim.treesitter.get_node_text, falling back to deprecated vim.treesitter.query.get_node_text

@pyqlsa
Copy link
Contributor Author

pyqlsa commented Dec 2, 2023

After looking around some more, an alternate fix could be something along the lines of https://github.com/hrsh7th/nvim-cmp/pull/1499/files; I'm happy to adjust if preferred.

Edit: went ahead and implemented this rather than waiting for initial feedback.

try new `vim.treesitter.get_node_text`, falling back to deprecated
`vim.treesitter.query.get_node_text`
@pyqlsa pyqlsa force-pushed the ts_deprecate_query_get_node_text branch from 4c55370 to 32d1247 Compare December 2, 2023 23:10
@windwp
Copy link
Owner

windwp commented Dec 20, 2023

thanks

@windwp windwp merged commit 776c742 into windwp:master Dec 20, 2023
@pyqlsa pyqlsa deleted the ts_deprecate_query_get_node_text branch December 20, 2023 06:35
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.

None yet

2 participants