Просмотр исходного кода

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

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Sergio Garcia 2 месяцев назад
Родитель
Сommit
96eda740cd
2 измененных файлов с 20 добавлено и 2 удалено
  1. 10 1
      packages/web/src/content/docs/formatters.mdx
  2. 10 1
      packages/web/src/content/docs/lsp.mdx

+ 10 - 1
packages/web/src/content/docs/formatters.mdx

@@ -70,7 +70,16 @@ Let's look at some examples.
 
 
 ### Disabling formatters
 ### 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}
 ```json title="opencode.json" {5}
 {
 {

+ 10 - 1
packages/web/src/content/docs/lsp.mdx

@@ -78,7 +78,16 @@ Let's look at some examples.
 
 
 ### Disabling LSP servers
 ### 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}
 ```json title="opencode.json" {5}
 {
 {