summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/content
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-08-05 05:17:56 -0500
committerGitHub <[email protected]>2025-08-05 05:17:56 -0500
commit51498c8de452eb3337e9e20d91c9cacf2c5c277b (patch)
tree1e31d86007bce0082f3bee49d5ec7ec17b48c946 /packages/web/src/content
parent7a495faa49663cd2e788d4b7d6b4ecfb0805ed04 (diff)
downloadopencode-51498c8de452eb3337e9e20d91c9cacf2c5c277b.tar.gz
opencode-51498c8de452eb3337e9e20d91c9cacf2c5c277b.zip
docs: make formatter docs a bit more clear (#1613)
Diffstat (limited to 'packages/web/src/content')
-rw-r--r--packages/web/src/content/docs/docs/formatters.mdx8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/web/src/content/docs/docs/formatters.mdx b/packages/web/src/content/docs/docs/formatters.mdx
index 7fae2ff45..720f3c1af 100644
--- a/packages/web/src/content/docs/docs/formatters.mdx
+++ b/packages/web/src/content/docs/docs/formatters.mdx
@@ -86,16 +86,20 @@ To disable a specific formatter, set `disabled` to `true`:
You can override the built-in formatters or add new ones by specifying the command, environment variables, and file extensions:
-```json title="opencode.json" {4-10}
+```json title="opencode.json" {4-14}
{
"$schema": "https://opencode.ai/config.json",
"formatter": {
- "custom-prettier": {
+ "prettier": {
"command": ["npx", "prettier", "--write", "$FILE"],
"environment": {
"NODE_ENV": "development"
},
"extensions": [".js", ".ts", ".jsx", ".tsx"]
+ },
+ "custom-markdown-formatter": {
+ "command": ["deno", "fmt", "$FILE"],
+ "extensions": [".md"]
}
}
}