From 853274a5968ae1087b536be681f7b1224c901657 Mon Sep 17 00:00:00 2001 From: Sirisak Lueangsaksri <1087399+spywhere@users.noreply.github.com> Date: Sat, 5 Oct 2024 00:32:01 +0700 Subject: [PATCH] fix(nvim): deprecated tsserver --- configs/nvim/lua/language/typescript.lua | 2 +- configs/nvim/lua/plugin/autocomplete/lspconfig.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/nvim/lua/language/typescript.lua b/configs/nvim/lua/language/typescript.lua index 9307e556..a860426d 100644 --- a/configs/nvim/lua/language/typescript.lua +++ b/configs/nvim/lua/language/typescript.lua @@ -1,5 +1,5 @@ local lsp = require('lib.lsp') -lsp.setup('tsserver') +lsp.setup('ts_ls') .need_executable('typescript-language-server') .root { 'package.json', 'tsconfig.json', 'jsconfig.json' } diff --git a/configs/nvim/lua/plugin/autocomplete/lspconfig.lua b/configs/nvim/lua/plugin/autocomplete/lspconfig.lua index db16afd8..21c9b594 100644 --- a/configs/nvim/lua/plugin/autocomplete/lspconfig.lua +++ b/configs/nvim/lua/plugin/autocomplete/lspconfig.lua @@ -20,7 +20,7 @@ registry.install { mason_lsp.setup { ensure_installed = { - 'bashls', 'emmet_ls', 'eslint', 'graphql', 'lua_ls', 'pyright', 'tsserver', 'vimls', 'yamlls' + 'bashls', 'emmet_ls', 'eslint', 'graphql', 'lua_ls', 'pyright', 'ts_ls', 'vimls', 'yamlls' }, handlers = { handler } }