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
[Feature request] Highlight current block entirely #14
Comments
Would be great if you could post a screenshot of the behavior you would like to see, since it's not entirely clear what you're asking :) I saw you also posted #13 Is that a duplicate of this one? |
Yep, #13 is a duplicate of this, I posted twice because I had a submission error thrown at me the first time for some reason. Here a few screenshots showing the behaviour I'd like to see improved: |
First of all. This is a buffer that has treesitter enabled right? Of so, then use the treesitter playground plugin to determine what the scope is of the function (it's not Once you know the scope, add it in the expand section of the config. Would also be great to let me know that scope, since it might be useful to add to the default expand scopes. |
This is what I'm seeing using treesitter's playground plugin. |
You'll probably get what you want by adding |
@folke Thanks a lot, man. That worked like a charm! |
Reviving this issue: do you think you could use the |
@vigoux I totally missed the addition of the locals queries! Definitely something I can use to improve Twilight. |
It's actually not a really known feature of tree-sitter, but I think you can leverage it 😉 |
Hi! I wanted to know if someone could help me with how I can highlight everything inside of the dependencies block thats there in the screenshot? Looking at the TS Playground in the image, indicates that the value I should use is I tried this but this lead to everything the in outer layer which is also a I need someway to get it to chose to highlight the inner most block present. Also on a similar to this, how can I get Twilight to only highlight the |
As the title says, it'd be cool to be able to get this plugin to ighlight the whole parent block entirely, instead of highliting the current code block from its start to the current line.
The text was updated successfully, but these errors were encountered: