From bdbc65aadc708ce528efb22bca5f82a7cca6b54d Mon Sep 17 00:00:00 2001 From: Yi Ming Date: Thu, 5 Sep 2024 16:26:31 +0800 Subject: feat(ts_ls)!: rename `tsserver` to `ts_ls` #3232 `tsserver` cannot be used as an abbreviation for `typescript-language-server`, because there is [`tsserver`](https://github.com/microsoft/TypeScript/wiki/Standalone-Server-(tsserver)) already and it is completely different from `typescript-language-server`. This is misleading. As the [README of `typescript-language-server`](https://github.com/typescript-language-server/typescript-language-server/blob/master/README.md) says, it's a wrapper of `tsserver`. This abuse has been around for so many time in lspconfig that people don't realize they are two different things, and are then confused by replacements of `typescript-language-server` like [typescript-tools.nvim](https://github.com/pmizio/typescript-tools.nvim) and [vtsls](https://github.com/yioneko/vtsls). --- lua/lspconfig.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua/lspconfig.lua') diff --git a/lua/lspconfig.lua b/lua/lspconfig.lua index 0823ec8d..b9012f87 100644 --- a/lua/lspconfig.lua +++ b/lua/lspconfig.lua @@ -27,6 +27,10 @@ local function server_alias(name) to = 'lua_ls', version = '0.2.0', }, + tsserver = { + to = 'ts_ls', + version = '0.2.0', + }, } return aliases[name] -- cgit v1.2.3-70-g09d2