-
Notifications
You must be signed in to change notification settings - Fork 2
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
Implement tree-sitter context queries. #104
Implement tree-sitter context queries. #104
Conversation
then: (then) @context.end | ||
) @context | ||
|
||
(case |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also select
I see the plugin has a custom test format, maybe that only makes sense to add when this is ready to contribute upstream? |
It makes sense to add them here too, I just don't have time to write them now. So I manually tested the rules in vim like a cave man. |
Just saw the test format... I'll add it here, or maybe I try to submit a PR to nvim-context itself, however I'm not sure it they will accept since this isn't on nvim-treesitter yet. |
I wrote a test, I tried to run it on nvim-treesitter-context but it needs the language to be already in nvim-treesitter to execute the tests. So I think the tests can be sent when this query get upstream and this can be merged now. |
If you add |
Oops I had forgot about it, I'll add maybe tomorrow then ping you. |
Meant to be used with https://github.com/nvim-treesitter/nvim-treesitter-context