From 99391aa837aebaa3769eaa429cecea9cdf0304e4 Mon Sep 17 00:00:00 2001 From: Trevor Vallender Date: Tue, 13 Aug 2024 10:10:47 +0100 Subject: [PATCH] Bugfix: Recognise ERB files correctly in Neovim These are reported as "eruby", not "erb", so we need to account for this. --- lib/ruby_lsp/server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ruby_lsp/server.rb b/lib/ruby_lsp/server.rb index 7e1bfd125..0badf1589 100644 --- a/lib/ruby_lsp/server.rb +++ b/lib/ruby_lsp/server.rb @@ -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