docs: formatter: false and lsp: false (#4833)

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
This commit is contained in:
Sergio Garcia 2025-11-28 18:22:48 +01:00 committed by GitHub
parent fa84612357
commit 96eda740cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 2 deletions

View file

@ -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}
{

View file

@ -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}
{