jadestrong/lsp-volar

Project create with Vue CLI does not start LS

ohhskar opened this issue · 2 comments

A project that was created with Vue CLI does not start the Language Server. Volar is not included as available servers to be used, even if the filetype is .vue.

These are the available language servers that lsp-mode offers when opening a file:
image

This issue is not present when the volar-start project is used.

I've checked/tried the following:

  • vue is included in the package.json dependencies
  • .volarrc is added to the root of the project

What's the output when you type this command in your project:

M-x eval-expression
(lsp-volar--activate-p (buffer-file-name))

The same thing happened to me and the output from

M-x eval-expression
(lsp-volar--activate-p (buffer-file-name))

Is nil.