From 51498c8de452eb3337e9e20d91c9cacf2c5c277b Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Tue, 5 Aug 2025 05:17:56 -0500 Subject: [PATCH] docs: make formatter docs a bit more clear (#1613) --- packages/web/src/content/docs/docs/formatters.mdx | 8 ++++++-- 1 file 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 7fae2ff4..720f3c1a 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"] } } }