summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/content/docs/config.mdx
diff options
context:
space:
mode:
authorLuke Parker <[email protected]>2026-05-03 10:09:50 +1000
committerGitHub <[email protected]>2026-05-03 00:09:50 +0000
commit6b68b1020e3efbeb7d09b3318495593b66f1c745 (patch)
treea28e35c98f30b86c55ce213bf37c80afe3c16cfc /packages/web/src/content/docs/config.mdx
parent85bb9007baab8e6c5cd28ea39e9eddb15022cb5d (diff)
downloadopencode-6b68b1020e3efbeb7d09b3318495593b66f1c745.tar.gz
opencode-6b68b1020e3efbeb7d09b3318495593b66f1c745.zip
docs: clarify LSP and formatter opt-in config (#25502)
Diffstat (limited to 'packages/web/src/content/docs/config.mdx')
-rw-r--r--packages/web/src/content/docs/config.mdx39
1 files changed, 38 insertions, 1 deletions
diff --git a/packages/web/src/content/docs/config.mdx b/packages/web/src/content/docs/config.mdx
index 14eefdd81..8568ffbb9 100644
--- a/packages/web/src/content/docs/config.mdx
+++ b/packages/web/src/content/docs/config.mdx
@@ -575,7 +575,16 @@ Notice that this only works if it was not installed using a package manager such
### Formatters
-You can configure code formatters through the `formatter` option.
+You can enable and configure code formatters through the `formatter` option. Omit it to keep formatters disabled.
+
+```json title="opencode.json"
+{
+ "$schema": "https://opencode.ai/config.json",
+ "formatter": true
+}
+```
+
+Use an object to keep built-ins enabled while configuring overrides or custom formatters.
```json title="opencode.json"
{
@@ -599,6 +608,34 @@ You can configure code formatters through the `formatter` option.
---
+### LSP Servers
+
+You can enable and configure LSP servers through the `lsp` option. Omit it to keep LSP disabled.
+
+```json title="opencode.json"
+{
+ "$schema": "https://opencode.ai/config.json",
+ "lsp": true
+}
+```
+
+Use an object to keep built-ins enabled while configuring overrides or custom LSP servers.
+
+```json title="opencode.json"
+{
+ "$schema": "https://opencode.ai/config.json",
+ "lsp": {
+ "typescript": {
+ "disabled": true
+ }
+ }
+}
+```
+
+[Learn more about LSP servers here](/docs/lsp).
+
+---
+
### Permissions
By default, opencode **allows all operations** without requiring explicit approval. You can change this using the `permission` option.