aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/ts_ls.lua
diff options
context:
space:
mode:
authorFidel Yin <fidel.yin@hotmail.com>2025-07-10 21:14:43 +0800
committerGitHub <noreply@github.com>2025-07-10 06:14:43 -0700
commit85379d02d3bac8dc68129a4b81d7dbd00c8b0f77 (patch)
tree3339dab7392077501669219c0f273307df7b1a04 /lsp/ts_ls.lua
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-85379d02d3bac8dc68129a4b81d7dbd00c8b0f77.tar
nvim-lspconfig-85379d02d3bac8dc68129a4b81d7dbd00c8b0f77.tar.gz
nvim-lspconfig-85379d02d3bac8dc68129a4b81d7dbd00c8b0f77.tar.bz2
nvim-lspconfig-85379d02d3bac8dc68129a4b81d7dbd00c8b0f77.tar.lz
nvim-lspconfig-85379d02d3bac8dc68129a4b81d7dbd00c8b0f77.tar.xz
nvim-lspconfig-85379d02d3bac8dc68129a4b81d7dbd00c8b0f77.tar.zst
nvim-lspconfig-85379d02d3bac8dc68129a4b81d7dbd00c8b0f77.zip
fix(vue_ls): support `vue_ls` v3 #3943
Problem: `vue_ls` made breaking changes to its config in v3. Solution: Change the typescript language server for `vue_ls` from `ts_ls` to `vtsls`. Add a client handler to communicate between `vue_ls` and `vtsls`. Remove `typescript.tsdk` option. Remove documentation for the deprecated takeover mode.
Diffstat (limited to 'lsp/ts_ls.lua')
-rw-r--r--lsp/ts_ls.lua37
1 files changed, 0 insertions, 37 deletions
diff --git a/lsp/ts_ls.lua b/lsp/ts_ls.lua
index 20f750b3..e3cc99bc 100644
--- a/lsp/ts_ls.lua
+++ b/lsp/ts_ls.lua
@@ -32,43 +32,6 @@
--- Use the `:LspTypescriptSourceAction` command to see "whole file" ("source") code-actions such as:
--- - organize imports
--- - remove unused code
----
---- ### Vue support
----
---- As of 2.0.0, the Vue language server 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 `@vue/language-server `are of identical versions.
----
---- ```lua
---- vim.lsp.config('ts_ls', {
---- init_options = {
---- plugins = {
---- {
---- name = "@vue/typescript-plugin",
---- location = "/usr/local/lib/node_modules/@vue/typescript-plugin",
---- languages = {"javascript", "typescript", "vue"},
---- },
---- },
---- },
---- filetypes = {
---- "javascript",
---- "typescript",
---- "vue",
---- },
---- })
----
---- -- You must make sure the Vue language server is setup
---- -- e.g. vim.lsp.config('vue_ls')
---- -- See vue_ls's section for more information
---- ```
----
---- `location` MUST be defined. If the plugin is installed in `node_modules`,
---- `location` can have any value.
----
---- `languages` must include `vue` even if it is listed in `filetypes`.
----
---- `filetypes` is extended here to include Vue SFC.
return {
init_options = { hostInfo = 'neovim' },