diff options
| author | Aiden Cline <[email protected]> | 2025-08-03 13:01:09 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-03 13:01:09 -0500 |
| commit | 5eebc8ab518a8610ee1adc8fee5676cb1ae2f177 (patch) | |
| tree | 0714301b5a6abcb3a01c4148993c81648ccb1970 /packages/web/src | |
| parent | 21c52fd5cb2b6f4c289227906d35cee2939300c3 (diff) | |
| download | opencode-5eebc8ab518a8610ee1adc8fee5676cb1ae2f177.tar.gz opencode-5eebc8ab518a8610ee1adc8fee5676cb1ae2f177.zip | |
docs: fix mixed up documentation (#1564)
Diffstat (limited to 'packages/web/src')
| -rw-r--r-- | packages/web/src/content/docs/docs/config.mdx | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/packages/web/src/content/docs/docs/config.mdx b/packages/web/src/content/docs/docs/config.mdx index 30fbede16..b768d73e4 100644 --- a/packages/web/src/content/docs/docs/config.mdx +++ b/packages/web/src/content/docs/docs/config.mdx @@ -236,6 +236,14 @@ The `disabled_providers` option accepts an array of provider IDs. When a provide - It won't be loaded even if API keys are configured through `opencode auth login` - The provider's models won't appear in the model selection list + +```json title="opencode.json" +{ + "$schema": "https://opencode.ai/config.json", + "disabled_providers": ["openai", "gemini"] +} +``` + --- ### Formatters @@ -245,7 +253,18 @@ You can configure code formatters through the `formatter` option. See [Formatter ```json title="opencode.json" { "$schema": "https://opencode.ai/config.json", - "disabled_providers": ["openai", "gemini"] + "formatter": { + "prettier": { + "disabled": true + }, + "custom-prettier": { + "command": ["npx", "prettier", "--write", "$FILE"], + "environment": { + "NODE_ENV": "development" + }, + "extensions": [".js", ".ts", ".jsx", ".tsx"] + } + } } ``` |
