go.nvim/after/queries/go/locals.scm
Amaan Qureshi f45b072606
feat: improve queries (#316)
* feat: improve queries

* chore: format files
2023-03-31 14:10:36 +11:00

16 lines
358 B
Scheme

; extends
(var_spec) @scope
(field_declaration
name: (field_identifier) @definition.field)
(method_spec
name: (field_identifier) @method.name
parameters: (parameter_list) @method.parameter_list) @interface.method.declaration
(type_declaration
(type_spec
name: (type_identifier) @name
type: [(struct_type) (interface_type)] @type)) @start