mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
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:
parent
fa84612357
commit
96eda740cd
2 changed files with 20 additions and 2 deletions
|
|
@ -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}
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue