mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-11 12:46:07 +00:00
docs: Update Ruby docs to provide more complete examples (#17987)
Closes #17917 Release Notes: - N/A
This commit is contained in:
parent
d4e10dfba3
commit
550ceec549
1 changed files with 24 additions and 5 deletions
|
@ -138,15 +138,21 @@ Ruby LSP uses pull-based diagnostics which Zed doesn't support yet. We can tell
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
"languages": {
|
||||||
|
"Ruby": {
|
||||||
|
"language_servers": ["ruby-lsp", "!solargraph", "..."],
|
||||||
|
},
|
||||||
|
},
|
||||||
"lsp": {
|
"lsp": {
|
||||||
"ruby-lsp": {
|
"ruby-lsp": {
|
||||||
"initialization_options": {
|
"initialization_options": {
|
||||||
"enabledFeatures": {
|
"enabledFeatures": {
|
||||||
"diagnostics": false
|
// This disables diagnostics
|
||||||
}
|
"diagnostics": false,
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -164,11 +170,24 @@ Rubocop has unsafe autocorrection disabled by default. We can tell Zed to enable
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
"languages": {
|
||||||
|
"Ruby": {
|
||||||
|
// Use ruby-lsp as the primary language server and rubocop as the secondary.
|
||||||
|
"language_servers": ["ruby-lsp", "rubocop", "!solargraph", "..."]
|
||||||
|
}
|
||||||
|
},
|
||||||
"lsp": {
|
"lsp": {
|
||||||
"rubocop": {
|
"rubocop": {
|
||||||
"initialization_options": {
|
"initialization_options": {
|
||||||
"safeAutocorrect": false
|
"safeAutocorrect": false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"ruby-lsp": {
|
||||||
|
"initialization_options": {
|
||||||
|
"enabledFeatures": {
|
||||||
|
"diagnostics": false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue