You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,8 @@
34
34
35
35
Note: The "Take Over" mode has been discontinued. Instead, a new "Hybrid" mode has been introduced. In this mode, the Vue Language Server exclusively manages the CSS/HTML sections. As a result, you must run `@vue/language-server` in conjunction with a TypeScript server that employs `@vue/typescript-plugin`. Below is a streamlined configuration for Neovim's LSP, updated to accommodate the language server following the upgrade to version `2.0.0`.
36
36
37
+
> For nvim-lspconfig versions below [v1.0.0](https://newreleases.io/project/github/neovim/nvim-lspconfig/release/v1.0.0) use tsserver instead of ts_ls, e.g. `lspconfig.ts_ls.setup`
38
+
37
39
```lua
38
40
-- If you are using mason.nvim, you can get the ts_plugin_path like this
39
41
-- local mason_registry = require('mason-registry')
@@ -43,7 +45,7 @@ local vue_language_server_path = '/path/to/@vue/language-server'
43
45
44
46
locallspconfig=require('lspconfig')
45
47
46
-
lspconfig.tsserver.setup {
48
+
lspconfig.ts_ls.setup {
47
49
init_options= {
48
50
plugins= {
49
51
{
@@ -62,7 +64,7 @@ lspconfig.volar.setup {}
62
64
63
65
### Non-Hybrid mode(similar to takeover mode) configuration (Requires `@vue/language-server` version `^2.0.7`)
64
66
65
-
Note: If `hybridMode` is set to `false``Volar` will run embedded `tsserver` therefore there is no need to run it separately.
67
+
Note: If `hybridMode` is set to `false``Volar` will run embedded `ts_ls` therefore there is no need to run it separately.
66
68
67
69
For more information see [#4119](https://github.com/vuejs/language-tools/pull/4119)
68
70
@@ -72,7 +74,7 @@ Use volar for all `.{vue,js,ts,tsx,jsx}` files.
0 commit comments