Skip to content

Commit 208f036

Browse files
committed
docs: clarify custom formatter command requirement
1 parent 38b0bf4 commit 208f036

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/web/src/content/docs/formatters.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Each formatter configuration supports the following:
8383
| Property | Type | Description |
8484
| ------------- | -------- | ------------------------------------------------------- |
8585
| `disabled` | boolean | Set this to `true` to disable the formatter |
86-
| `command` | string[] | The command to run for formatting |
86+
| `command` | string[] | The command to run for formatting. Required for custom formatters; optional for built-ins. |
8787
| `environment` | object | Environment variables to set when running the formatter |
8888
| `extensions` | string[] | File extensions this formatter should handle |
8989

@@ -119,7 +119,7 @@ To disable a **specific** formatter, set `disabled` to `true`:
119119

120120
### Custom formatters
121121

122-
You can configure built-in formatters or add new ones by specifying the command, environment variables, and file extensions:
122+
You can configure built-in formatters with options like `environment` or `extensions`. To add a custom formatter, specify a `command` and `extensions`:
123123

124124
```json title="opencode.json" {4-14}
125125
{

0 commit comments

Comments
 (0)