summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/web/src')
-rw-r--r--packages/web/src/content/docs/formatters.mdx11
-rw-r--r--packages/web/src/content/docs/lsp.mdx11
2 files changed, 20 insertions, 2 deletions
diff --git a/packages/web/src/content/docs/formatters.mdx b/packages/web/src/content/docs/formatters.mdx
index cc5cb6056..2af4207ad 100644
--- a/packages/web/src/content/docs/formatters.mdx
+++ b/packages/web/src/content/docs/formatters.mdx
@@ -70,7 +70,16 @@ Let's look at some examples.
### Disabling formatters
-To disable a specific formatter, set `disabled` to `true`:
+To disable **all** formatters globally, set `formatter` to `false`:
+
+```json title="opencode.json" {3}
+{
+ "$schema": "https://opencode.ai/config.json",
+ "formatter": false
+}
+```
+
+To disable a **specific** formatter, set `disabled` to `true`:
```json title="opencode.json" {5}
{
diff --git a/packages/web/src/content/docs/lsp.mdx b/packages/web/src/content/docs/lsp.mdx
index af9f2cfc1..8f35cf106 100644
--- a/packages/web/src/content/docs/lsp.mdx
+++ b/packages/web/src/content/docs/lsp.mdx
@@ -78,7 +78,16 @@ Let's look at some examples.
### Disabling LSP servers
-To disable a specific LSP server, set `disabled` to `true`:
+To disable **all** LSP servers globally, set `lsp` to `false`:
+
+```json title="opencode.json" {3}
+{
+ "$schema": "https://opencode.ai/config.json",
+ "lsp": false
+}
+```
+
+To disable a **specific** LSP server, set `disabled` to `true`:
```json title="opencode.json" {5}
{