on 6c11708 help sign in
helix/runtime/queries/go/textobjects.scm
21 lines 589 B history raw
1(function_declaration
2 body: (block)? @function.inside) @function.around
4(func_literal
5 (_)? @function.inside) @function.around
7(method_declaration
8 body: (block)? @function.inside) @function.around
10;; struct and interface declaration as class textobject?
11(type_declaration
12 (type_spec (type_identifier) (struct_type (field_declaration_list (_)?) @class.inside))) @class.around
14(type_declaration
15 (type_spec (type_identifier) (interface_type (method_spec_list (_)?) @class.inside))) @class.around
17(parameter_list
18 (_) @parameter.inside)
20(argument_list
21 (_) @parameter.inside)