aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/tsserver.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/lua/lspconfig/server_configurations/tsserver.lua b/lua/lspconfig/server_configurations/tsserver.lua
index 347b15d7..b5fa5a4b 100644
--- a/lua/lspconfig/server_configurations/tsserver.lua
+++ b/lua/lspconfig/server_configurations/tsserver.lua
@@ -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 = {
@@ -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`,