The open source coding agent.
TypeScript
docs: formatter: false and lsp: false (#4833)
Sergio Garcia96eda740cd1b
diff --git a/packages/web/src/content/docs/formatters.mdx b/packages/web/src/content/docs/formatters.mdxindex cc5cb605630..2af4207adf7 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.mdxindex af9f2cfc14c..8f35cf10627 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}{