mirror of
https://github.com/helix-editor/helix.git
synced 2025-01-19 05:27:07 +04:00
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.
This commit is contained in:
parent
f7a3d35752
commit
4a27e2d938
@ -7,6 +7,8 @@
|
|||||||
(function_item
|
(function_item
|
||||||
body: (_) @function.inside)) @function.around
|
body: (_) @function.inside)) @function.around
|
||||||
|
|
||||||
|
(closure_expression body: (_) @function.inside) @function.around
|
||||||
|
|
||||||
(
|
(
|
||||||
[
|
[
|
||||||
(attribute_item)+
|
(attribute_item)+
|
||||||
|
Loading…
Reference in New Issue
Block a user