Skip to content

Commit

Permalink
Bugfix: Recognise ERB files correctly in Neovim
Browse files Browse the repository at this point in the history
These are reported as "eruby", not "erb", so we need to account for
this.
  • Loading branch information
tsvallender committed Aug 13, 2024
1 parent 84d2488 commit 99391aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ruby_lsp/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def text_document_did_open(message)
@mutex.synchronize do
text_document = message.dig(:params, :textDocument)
language_id = case text_document[:languageId]
when "erb"
when "erb", "eruby"
Document::LanguageId::ERB
else
Document::LanguageId::Ruby
Expand Down

0 comments on commit 99391aa

Please sign in to comment.