aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2026-09-06 18:40:30 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2026-09-06 18:40:30 +0000
commit585eb6d406b0811d0ba94cd4d5b603eab260a416 (patch)
treed6cf56ecb75e3d22b44d8d81511500445a5af558
parentdoc(ts)ls): installation instructions #4517 (diff)
downloadnvim-lspconfig-585eb6d406b0811d0ba94cd4d5b603eab260a416.tar
nvim-lspconfig-585eb6d406b0811d0ba94cd4d5b603eab260a416.tar.gz
nvim-lspconfig-585eb6d406b0811d0ba94cd4d5b603eab260a416.tar.bz2
nvim-lspconfig-585eb6d406b0811d0ba94cd4d5b603eab260a416.tar.lz
nvim-lspconfig-585eb6d406b0811d0ba94cd4d5b603eab260a416.tar.xz
nvim-lspconfig-585eb6d406b0811d0ba94cd4d5b603eab260a416.tar.zst
nvim-lspconfig-585eb6d406b0811d0ba94cd4d5b603eab260a416.zip
docs: update configs.md
skip-checks: true
-rw-r--r--doc/configs.md12
-rw-r--r--doc/configs.txt12
2 files changed, 16 insertions, 8 deletions
diff --git a/doc/configs.md b/doc/configs.md
index 1331839a..5d3ab036 100644
--- a/doc/configs.md
+++ b/doc/configs.md
@@ -14252,7 +14252,8 @@ for TypeScript, `typescript-language-server` may still be useful for features su
`typescript-language-server` depends on `typescript`. Both packages can be installed via `npm`:
```sh
-npm install -g typescript typescript-language-server
+# if you are using `ts_ls` you will need to install a `typescript` version < 7 for now
+npm install -g typescript@<version> typescript-language-server
```
To configure typescript language server, add a
@@ -14275,6 +14276,9 @@ Here's an example that disables type checking in JavaScript files.
}
```
+If you also have a `deno.json` or a `deno.jsonc` in your project, the `ts_ls` may not start (depending where the
+deno.json is)
+
Use the `:LspTypescriptSourceAction` command to see "whole file" ("source") code-actions such as:
- organize imports
- remove unused code
@@ -14294,7 +14298,7 @@ Commands:
- editor.action.showReferences
Default config:
-- `cmd`: [../lsp/ts_ls.lua:46](../lsp/ts_ls.lua#L46)
+- `cmd`: [../lsp/ts_ls.lua:50](../lsp/ts_ls.lua#L50)
- `commands` :
```lua
{
@@ -14317,8 +14321,8 @@ Default config:
hostInfo = "neovim"
}
```
-- `on_attach`: [../lsp/ts_ls.lua:46](../lsp/ts_ls.lua#L46)
-- `root_dir`: [../lsp/ts_ls.lua:46](../lsp/ts_ls.lua#L46)
+- `on_attach`: [../lsp/ts_ls.lua:50](../lsp/ts_ls.lua#L50)
+- `root_dir`: [../lsp/ts_ls.lua:50](../lsp/ts_ls.lua#L50)
---
diff --git a/doc/configs.txt b/doc/configs.txt
index 7a0dd6e1..e868cff5 100644
--- a/doc/configs.txt
+++ b/doc/configs.txt
@@ -10679,7 +10679,8 @@ While `typescript-language-server` will likely eventually be replaced by [tsc](#
for TypeScript, `typescript-language-server` may still be useful for features such as es5 support.
`typescript-language-server` depends on `typescript`. Both packages can be installed via `npm` >sh
- npm install -g typescript typescript-language-server
+ # if you are using `ts_ls` you will need to install a `typescript` version < 7 for now
+ npm install -g typescript@<version> typescript-language-server
To configure typescript language server, add a
[`tsconfig.json`](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) or
@@ -10699,6 +10700,9 @@ Here's an example that disables type checking in JavaScript files.
]
}
+If you also have a `deno.json` or a `deno.jsonc` in your project, the `ts_ls` may not start (depending where the
+deno.json is)
+
Use the `:LspTypescriptSourceAction` command to see "whole file" ("source") code-actions such as:
- organize imports
- remove unused code
@@ -10717,7 +10721,7 @@ Commands:
- editor.action.showReferences
Default config:
-- cmd (use "gF" to view): ../lsp/ts_ls.lua:46
+- cmd (use "gF" to view): ../lsp/ts_ls.lua:50
- commands: >lua
{
["editor.action.showReferences"] = <function 1>
@@ -10732,8 +10736,8 @@ Default config:
{
hostInfo = "neovim"
}
-- on_attach (use "gF" to view): ../lsp/ts_ls.lua:46
-- root_dir (use "gF" to view): ../lsp/ts_ls.lua:46
+- on_attach (use "gF" to view): ../lsp/ts_ls.lua:50
+- root_dir (use "gF" to view): ../lsp/ts_ls.lua:50
<
------------------------------------------------------------------------------