emacs-lsp / lsp-mode

Emacs client/library for the Language Server Protocol
https://emacs-lsp.github.io/lsp-mode
GNU General Public License v3.0
4.75k stars 869 forks source link

.html.erb dont reconized by html-ls #3241

Open otavioschwanck opened 2 years ago

otavioschwanck commented 2 years ago

Thank you for the bug report

Bug description

https://github.com/hlissner/doom-emacs/issues/5858

Steps to reproduce

Open an html.erb file

Expected behavior

Runs html-ls

Which Language Server did you use?

LSP :: There are no language servers supporting current mode web-mode' registered withlsp-mode'.

This issue might be caused by:

  1. The language you are trying to use does not have built-in support in lsp-mode. You must install the required support manually. Examples of this are lsp-java or lsp-metals.
  2. The language server that you expect to run is not configured to run for major mode web-mode. You may check that by checking the :major-modes' that are passed tolsp-register-client`.
  3. lsp-mode doesn't have any integration for the language behind web-mode. Refer to https://emacs-lsp.github.io/lsp-mode/page/languages and https://langserver.org/ .
  4. You are over `tramp'. In this case follow https://emacs-lsp.github.io/lsp-mode/page/remote/.
  5. You have disabled the lsp-mode clients for that file. (Check lsp-enabled-clients and lsp-disabled-clients).

OS

MacOS

Error callstack

No response

Anything else?

No response

martinffx commented 1 year ago

If you want to get this working you can add this to your .doom.d/config.el

(defvar lsp-language-id-configuration
  '((".*\\.html\\.erb$" . "html")))