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 }, },