Migrate from tsserver to ts_ls

This commit is contained in:
Filip Rojek 2024-12-27 14:13:34 +01:00
parent 20c17d700b
commit a247d72421
3 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,10 @@ A template for getting started with [AstroNvim](https://github.com/AstroNvim/Ast
## System dependencies ## System dependencies
- `lazygit` for lazygit integration - `lazygit` for lazygit integration
- `typescript-language-server` and `typescript` installed globally from npm
```bash
npm install -g typescript-language-server typescript
```
## 🛠️ Installation ## 🛠️ Installation

View File

@ -42,6 +42,7 @@ return {
-- customize language server configuration options passed to `lspconfig` -- customize language server configuration options passed to `lspconfig`
---@diagnostic disable: missing-fields ---@diagnostic disable: missing-fields
config = { config = {
ts_ls = {},
-- clangd = { capabilities = { offsetEncoding = "utf-8" } }, -- clangd = { capabilities = { offsetEncoding = "utf-8" } },
}, },
-- customize how language servers are attached -- customize how language servers are attached

View File

@ -9,7 +9,6 @@ return {
opts = { opts = {
ensure_installed = { ensure_installed = {
"lua_ls", "lua_ls",
"ts_ls",
-- add more arguments for adding more language servers -- add more arguments for adding more language servers
}, },
}, },