File tree Expand file tree Collapse file tree 1 file changed +24
-5
lines changed
Expand file tree Collapse file tree 1 file changed +24
-5
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments