Migrate from tsserver to ts_ls
This commit is contained in:
parent
20c17d700b
commit
a247d72421
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user