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

Figure out how to add ability to sort injected languages #7

Open
mtrajano opened this issue Aug 28, 2024 · 0 comments
Open

Figure out how to add ability to sort injected languages #7

mtrajano opened this issue Aug 28, 2024 · 0 comments

Comments

@mtrajano
Copy link
Owner

Simply passing ignore_injected languages to the get_node call causes some other things to break. It's causing the node:parent() call to return null if not actually inside an injected language range. This seems like a treesitter bug but see if I can distinguish wether the cursor is inside an injected language or if I can detect when the node is "breaking out" of the injected language range.

See here for original report and attempted solution.

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

No branches or pull requests

1 participant