We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 137a2e6 commit 6fd7142Copy full SHA for 6fd7142
home/nvim/go-textobjects.scm
@@ -13,12 +13,20 @@
13
; custom go type (@class includes literals?!)
14
(type_declaration) @customtype.outer
15
16
+; add variadic_parameter_declaration
17
+(parameter_list
18
+ .
19
+ (variadic_parameter_declaration) @parameter.inner
20
21
+ ","? @_end
22
+ (#make-range! "parameter.outer" @parameter.inner @_end))
23
+
24
; peeking should show the body of functions and types
25
[ (type_declaration) (function_declaration) (method_declaration) ] @peek
26
27
; custom go type bodies without curlies
28
(type_declaration
- (type_spec
29
+ (type_spec
30
name: (type_identifier)
31
type: [
32
(struct_type (field_declaration_list . "{" . (_) @_start @_end (_)? @_end . "}"))
0 commit comments