Replies: 1 comment 8 replies
-
Yep, here is my https://config.cyberaesthete.xyz/dist/.emacs.d/init.el I haven't experienced the timeout and dying, what version of volar are you on? What I have experienced is volar not starting at all because it needs the https://config.cyberaesthete.xyz/emacs.html#org0a3fea4 (:when-loaded
(add-to-list 'eglot-server-programs
'(vue-mode . (eglot-volar "vue-language-server" "--stdio")))
(defclass eglot-volar (eglot-lsp-server) ()
:documentation "A custom class for volar")
(cl-defmethod eglot-initialization-options ((server eglot-volar))
"Passes through required volar initialization options"
(let*
((serverPath
(expand-file-name
"lib/tsserverlibrary.js"
(shell-command-to-string "npm list --global --parseable typescript | head -n1 | tr -d \"\n\""))))
(list :typescript
(list :serverPath serverPath)
:languageFeatures
(list :completion
(list :defaultTagNameCase "both"
:defaultAttrNameCase "kebabCase"
:getDocumentNameCasesRequest nil
:getDocumentSelectionRequest nil)
:diagnostics
(list :getDocumentVersionRequest nil))
:documentFeatures
(list :documentFormatting
(list :defaultPrintWidth 100
:getDocumentPrintWidthRequest nil)
:documentSymbol t
:documentColor t))))) |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!,
I've searched around the internet, and haven't found a working configuration with eglot and volar
so far I've achieved running the server but it dies after the timeout,
I've increased the timeout to 120 seconds and still dies, so I don't think it's that the issue
This is my current config:
Any pointers are welcome.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions