Skip to content

Commit

Permalink
docs(vue): update vue support section (neovim#3060)
Browse files Browse the repository at this point in the history
* docs(vue): update vue support section

as johnsoncodehk mentioned here:
vuejs/language-tools#3925 (comment)

* chore: fix typo

* chore: fix typo
  • Loading branch information
RayGuo-ergou authored Mar 9, 2024
1 parent 94cf4ad commit 550c648
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lua/lspconfig/server_configurations/tsserver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ Here's an example that disables type checking in JavaScript files.
}
```
# Vue support
### Vue support
As of 2.0.0, Volar no longer supports TypeScript itself. Instead, a plugin adds
As of 2.0.0, Volar no longer supports TypeScript itself. Instead, a plugin
adds Vue support to this language server.
*IMPORTANT*: It is crucial to ensure that `@vue/typescript-plugin` and `volar `are of identical versions.
```lua
require'lspconfig'.tsserver.setup{
init_options = {
Expand All @@ -66,6 +68,10 @@ require'lspconfig'.tsserver.setup{
"vue",
},
}
-- You must make sure volar is setup
-- e.g. require'lspconfig'.volar.setup{}
-- See volar's section for more information
```
`location` MUST be defined. If the plugin is installed in `node_modules`,
Expand Down

0 comments on commit 550c648

Please sign in to comment.