Skip to content

I can't enable typescript in Vue files (Vue 3, vue language tools) #1395

Answered by pedroprieto
pedroprieto asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, I finally found it out!!!! I needed to add :vue (:hybridMode :json-false) to disable hybridMode, for vue-language-server version >2.0.

(defun eglot-volar-init-options ()
  "Get the vue-language-server initOptions."
  (let ((tsdk-path (expand-file-name "lib" (eglot-volar-find-typescript))))
    `(:typescript (:tsdk ,tsdk-path)
      :vue (:hybridMode :json-false))))

Just in case anyone needs it.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pedroprieto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant