From a247d72421391bfe255d8371040556109fd01232 Mon Sep 17 00:00:00 2001 From: Filip Rojek Date: Fri, 27 Dec 2024 14:13:34 +0100 Subject: [PATCH] Migrate from tsserver to ts_ls --- README.md | 4 ++++ lua/plugins/astrolsp.lua | 1 + lua/plugins/mason.lua | 1 - 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cb70fac..a026b21 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,10 @@ A template for getting started with [AstroNvim](https://github.com/AstroNvim/Ast ## System dependencies - `lazygit` for lazygit integration +- `typescript-language-server` and `typescript` installed globally from npm +```bash +npm install -g typescript-language-server typescript +``` ## 🛠️ Installation diff --git a/lua/plugins/astrolsp.lua b/lua/plugins/astrolsp.lua index 0b59244..8c9c535 100644 --- a/lua/plugins/astrolsp.lua +++ b/lua/plugins/astrolsp.lua @@ -42,6 +42,7 @@ return { -- customize language server configuration options passed to `lspconfig` ---@diagnostic disable: missing-fields config = { + ts_ls = {}, -- clangd = { capabilities = { offsetEncoding = "utf-8" } }, }, -- customize how language servers are attached diff --git a/lua/plugins/mason.lua b/lua/plugins/mason.lua index 8f0aa0c..b6be8eb 100644 --- a/lua/plugins/mason.lua +++ b/lua/plugins/mason.lua @@ -9,7 +9,6 @@ return { opts = { ensure_installed = { "lua_ls", - "ts_ls", -- add more arguments for adding more language servers }, },