You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/extensions/languages.md
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -274,16 +274,17 @@ For languages with declarations like C, provide queries that match `@class.aroun
274
274
275
275
If you are not sure what to put in textobjects.scm, both [nvim-treesitter-textobjects](https://github.com/nvim-treesitter/nvim-treesitter-textobjects), and the [Helix editor](https://github.com/helix-editor/helix) have queries for many langauges. You can refer to the Zed [built-in languages](https://github.com/zed-industries/zed/tree/main/crates/languages/src) to see how to adapt these.
276
276
277
-
| Capture | Description | Vim mode |
278
-
|------------------|-------------|----------|
279
-
|@function.around | An entire function definition or equivalent small section of a file. |`[m`, `]m`, `[M`,`]M` motions. `am` text object |
280
-
|@function.inside | The function body (the stuff within the braces). |`im` text object |
281
-
|@class.around | An entire class definition or equivalent large section of a file. |`[[`, `]]`, `[]`, `][` motions. `ac` text object |
282
-
|@class.inside | The contents of a class definition. |`ic` text object |
283
-
|@comment.around | An entire comment (e.g. all adjacent line comments, or a block comment) |`gc` text object |
284
-
|@comment.inside | The contents of a comment |`igc` text object (rarely supported) |
0 commit comments