| Capture Name |
|---|
function.inside |
function.around |
class.inside |
class.around |
test.inside |
test.around |
parameter.inside |
comment.inside |
comment.around |
Example query files can be found in the helix GitHub repository.
Queries for textobject based navigation
Tree-sitter based navigation in Helix is done using captures in the following order:
object.movementobject.aroundobject.inside
For example if a function.around capture has been already defined for a language
in its textobjects.scm file, function navigation should also work automatically.
function.movement should be defined only if the node captured by function.around
doesn't make sense in a navigation context.