aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGR3YH4TT3R93 <76727386+GR3YH4TT3R93@users.noreply.github.com>2025-08-24 08:47:33 -0700
committerGitHub <noreply@github.com>2025-08-24 08:47:33 -0700
commitaaa807fb2ea8d3caf41c153a174c6b7e472a8428 (patch)
tree0bb864df6ca29fbae25a1a15d4d32be25eb0ab46
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-aaa807fb2ea8d3caf41c153a174c6b7e472a8428.tar
nvim-lspconfig-aaa807fb2ea8d3caf41c153a174c6b7e472a8428.tar.gz
nvim-lspconfig-aaa807fb2ea8d3caf41c153a174c6b7e472a8428.tar.bz2
nvim-lspconfig-aaa807fb2ea8d3caf41c153a174c6b7e472a8428.tar.lz
nvim-lspconfig-aaa807fb2ea8d3caf41c153a174c6b7e472a8428.tar.xz
nvim-lspconfig-aaa807fb2ea8d3caf41c153a174c6b7e472a8428.tar.zst
nvim-lspconfig-aaa807fb2ea8d3caf41c153a174c6b7e472a8428.zip
feat(vue_ls): preliminary typescript-tools support #4030
This commit adds preliminary `typescript-tools` support for `vue_ls`. This is to allow for a smooth transition if support for `typescript.tsserverRequest` is added.
-rw-r--r--lsp/vue_ls.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/lsp/vue_ls.lua b/lsp/vue_ls.lua
index caa2ced8..95e09e20 100644
--- a/lsp/vue_ls.lua
+++ b/lsp/vue_ls.lua
@@ -32,6 +32,7 @@ return {
local function typescriptHandler(_, result, context)
local ts_client = vim.lsp.get_clients({ bufnr = context.bufnr, name = 'ts_ls' })[1]
or vim.lsp.get_clients({ bufnr = context.bufnr, name = 'vtsls' })[1]
+ or vim.lsp.get_clients({ bufnr = context.bufnr, name = 'typescript-tools' })[1]
if not ts_client then
-- there can sometimes be a short delay until `ts_ls`/`vtsls` are attached so we retry for a few times until it is ready
@@ -41,7 +42,10 @@ return {
typescriptHandler(_, result, context)
end, 100)
else
- vim.notify('Could not find `ts_ls` or `vtsls` lsp client, required by `vue_ls`.', vim.log.levels.ERROR)
+ vim.notify(
+ 'Could not find `ts_ls`, `vtsls`, or `typescript-tools` lsp client required by `vue_ls`.',
+ vim.log.levels.ERROR
+ )
end
return
end