capture rust closures as function textobjects
Closures like
iter.map(|a| a + 1)
Are sort-of functions, so `]f` or `maf` or `mif` can apply to them
as well as named function definitions.
commit4a27e2d93846f3b66ab0dc225e65d2fb869463f3
authorMichael Davis <mcarsondavis@gmail.com>
dateMon 6 Jun 2022, 10:18 (4 years ago)
parentf7a3d35
runtime/queries/rust/textobjects.scm+2
@@ -7,6 +7,8 @@
77 (function_item
88 body: (_) @function.inside)) @function.around
99
10+(closure_expression body: (_) @function.inside) @function.around
11+
1012(
1113 [
1214 (attribute_item)+