Skip to content

Commit 340ca0c

Browse files
committed
Fix docs
1 parent a3aa268 commit 340ca0c

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

docs/src/extensions/languages.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -274,16 +274,17 @@ For languages with declarations like C, provide queries that match `@class.aroun
274274

275275
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.
276276

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) |
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) |
285285

286286
For example:
287+
287288
```scheme
288289
; include only the content of the method in the function
289290
(method_definition

0 commit comments

Comments
 (0)