docs(emacs/programming): add information regarding Vue programming
All checks were successful
deploy / build (push) Successful in 5m27s

This commit is contained in:
Lucien Cartier-Tilet 2024-10-05 20:10:06 +02:00
parent 03bde6015f
commit 4baaaadf02
Signed by: phundrak
GPG Key ID: 347803E8073EACE0

View File

@ -1671,5 +1671,16 @@ Tide enabled interactivity with Typescript.
"roi" #'tide-organize-imports))
#+end_src
**** Vue
There isnt really any configuration in this heading, but an important
note concerning the usage of LSP with Vue. If the packages =typescript=
and =vue-tsc= are not in the =package.json= of a project, =volar= (or
=vue-semantic-server= according to =lsp-mode=) wont start properly. The
simplest fix is to run the following command:
#+begin_src sh
npm install --save-dev vue-tsc typescript
#+end_src
Or replace =npm= with whichever package manager you prefer.
If you want to work with Vue in Emacs, =web-mode= is more than enough
when paired with an LSP server.