feat: avante repo map rust crate (#628)
This commit is contained in:
18
crates/avante-repo-map/queries/tree-sitter-go-defs.scm
Normal file
18
crates/avante-repo-map/queries/tree-sitter-go-defs.scm
Normal file
@@ -0,0 +1,18 @@
|
||||
;; Capture top-level functions and struct definitions
|
||||
(var_declaration
|
||||
(var_spec) @variable
|
||||
)
|
||||
(const_declaration
|
||||
(const_spec) @variable
|
||||
)
|
||||
(function_declaration) @function
|
||||
(type_declaration
|
||||
(type_spec (struct_type)) @class
|
||||
)
|
||||
(type_declaration
|
||||
(type_spec
|
||||
(struct_type
|
||||
(field_declaration_list
|
||||
(field_declaration) @class_variable)))
|
||||
)
|
||||
(method_declaration) @method
|
||||
Reference in New Issue
Block a user