Skip to content

Select similar sibling nodes. #4339

Answered by theHamsta
Qlio asked this question in Q&A
Feb 18, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

At the moment you can only select individual nodes. There's a upstream PR that would allow to first iterate over all nodes mentioned *. Also the fold module would need to be made aware of this. Nvim-treesitter-textobects uses make-range! which can be used to create fake node objects that work with most tree-sitter modules. It's a bit a workaround that queries only select nodes but you can't describe ranges.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@theHamsta
Comment options

@GitMurf
Comment options

Answer selected by amaanq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants