Skip to content

Commit 550ceec

Browse files
authored
docs: Update Ruby docs to provide more complete examples (#17987)
Closes #17917 Release Notes: - N/A
1 parent d4e10df commit 550ceec

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

docs/src/languages/ruby.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,21 @@ Ruby LSP uses pull-based diagnostics which Zed doesn't support yet. We can tell
138138

139139
```json
140140
{
141+
"languages": {
142+
"Ruby": {
143+
"language_servers": ["ruby-lsp", "!solargraph", "..."],
144+
},
145+
},
141146
"lsp": {
142147
"ruby-lsp": {
143148
"initialization_options": {
144149
"enabledFeatures": {
145-
"diagnostics": false
146-
}
147-
}
148-
}
149-
}
150+
// This disables diagnostics
151+
"diagnostics": false,
152+
},
153+
},
154+
},
155+
},
150156
}
151157
```
152158

@@ -164,11 +170,24 @@ Rubocop has unsafe autocorrection disabled by default. We can tell Zed to enable
164170

165171
```json
166172
{
173+
"languages": {
174+
"Ruby": {
175+
// Use ruby-lsp as the primary language server and rubocop as the secondary.
176+
"language_servers": ["ruby-lsp", "rubocop", "!solargraph", "..."]
177+
}
178+
},
167179
"lsp": {
168180
"rubocop": {
169181
"initialization_options": {
170182
"safeAutocorrect": false
171183
}
184+
},
185+
"ruby-lsp": {
186+
"initialization_options": {
187+
"enabledFeatures": {
188+
"diagnostics": false
189+
}
190+
}
172191
}
173192
}
174193
}

0 commit comments

Comments
 (0)