Skip to content

Commit b14a8a9

Browse files
vitallium11happy
authored andcommitted
ruby: Add note about enabling Ruby LSP for ERB files (zed-industries#41851)
Hi, this is a follow-up change for zed-industries#41754 I think it important to keep existing things working. So add notes to the Ruby extension doc about enabling Ruby LSP for ERB files as well. Thanks! Release Notes: - N/A
1 parent b997921 commit b14a8a9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/src/languages/ruby.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@ To switch to `ruby-lsp`, add the following to your `settings.json`:
7171
"languages": {
7272
"Ruby": {
7373
"language_servers": ["ruby-lsp", "!solargraph", "!rubocop", "..."]
74+
},
75+
// Enable herb and ruby-lsp for *.html.erb files
76+
"HTML+ERB": {
77+
"language_servers": ["herb", "ruby-lsp", "..."]
78+
},
79+
// Enable ruby-lsp for *.js.erb files
80+
"JS+ERB": {
81+
"language_servers": ["ruby-lsp", "..."]
82+
},
83+
// Enable ruby-lsp for *.yaml.erb files
84+
"YAML+ERB": {
85+
"language_servers": ["ruby-lsp", "..."]
7486
}
7587
}
7688
}

0 commit comments

Comments
 (0)