aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorRay Guo <ma2808203259@hotmail.com>2024-03-09 21:22:36 +1100
committerGitHub <noreply@github.com>2024-03-09 18:22:36 +0800
commit550c648d39a61585c767dc017446f58b881a58e1 (patch)
treecb5098a752775716ba56b5fbc0ba6975dff0f2c7 /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-550c648d39a61585c767dc017446f58b881a58e1.tar
nvim-lspconfig-550c648d39a61585c767dc017446f58b881a58e1.tar.gz
nvim-lspconfig-550c648d39a61585c767dc017446f58b881a58e1.tar.bz2
nvim-lspconfig-550c648d39a61585c767dc017446f58b881a58e1.tar.lz
nvim-lspconfig-550c648d39a61585c767dc017446f58b881a58e1.tar.xz
nvim-lspconfig-550c648d39a61585c767dc017446f58b881a58e1.tar.zst
nvim-lspconfig-550c648d39a61585c767dc017446f58b881a58e1.zip
docs(vue): update vue support section (#3060)
* docs(vue): update vue support section as johnsoncodehk mentioned here: https://github.com/vuejs/language-tools/issues/3925#issuecomment-1986806306 * chore: fix typo * chore: fix typo
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`,