nvim-treesitter/playground

[Question] How to use query editor?

MuhammedZakir opened this issue · 4 comments

Can anyone tell me how to use query editor? I have entered a query in it, but nothing happens and I am confused about what to do next.

@MuhammedZakir you need to capture your query/node (node) @foo, then putting your cursor over @foo will highlight all matches in your code buffer.

Thanks @stsewd! :-)

I spent a bunch of time scratching my head about this too. It would be nice to add an example about how to do this!

Addressing this in #44