Skip to content

Commit 96eda74

Browse files
docs: formatter: false and lsp: false (#4833)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
1 parent fa84612 commit 96eda74

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

packages/web/src/content/docs/formatters.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,16 @@ Let's look at some examples.
7070

7171
### Disabling formatters
7272

73-
To disable a specific formatter, set `disabled` to `true`:
73+
To disable **all** formatters globally, set `formatter` to `false`:
74+
75+
```json title="opencode.json" {3}
76+
{
77+
"$schema": "https://opencode.ai/config.json",
78+
"formatter": false
79+
}
80+
```
81+
82+
To disable a **specific** formatter, set `disabled` to `true`:
7483

7584
```json title="opencode.json" {5}
7685
{

packages/web/src/content/docs/lsp.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,16 @@ Let's look at some examples.
7878

7979
### Disabling LSP servers
8080

81-
To disable a specific LSP server, set `disabled` to `true`:
81+
To disable **all** LSP servers globally, set `lsp` to `false`:
82+
83+
```json title="opencode.json" {3}
84+
{
85+
"$schema": "https://opencode.ai/config.json",
86+
"lsp": false
87+
}
88+
```
89+
90+
To disable a **specific** LSP server, set `disabled` to `true`:
8291

8392
```json title="opencode.json" {5}
8493
{

0 commit comments

Comments
 (0)