aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGithub Actions <actions@github>2021-01-14 21:02:23 +0000
committerGithub Actions <actions@github>2021-01-14 21:02:23 +0000
commit9977bf5bee4bc58eaa13ef468ae097597031607e (patch)
tree813b12ccf8da7b9e3e7f0acff1b98e7209a6b90d
parentuse new global bin command (diff)
downloadnvim-lspconfig-9977bf5bee4bc58eaa13ef468ae097597031607e.tar
nvim-lspconfig-9977bf5bee4bc58eaa13ef468ae097597031607e.tar.gz
nvim-lspconfig-9977bf5bee4bc58eaa13ef468ae097597031607e.tar.bz2
nvim-lspconfig-9977bf5bee4bc58eaa13ef468ae097597031607e.tar.lz
nvim-lspconfig-9977bf5bee4bc58eaa13ef468ae097597031607e.tar.xz
nvim-lspconfig-9977bf5bee4bc58eaa13ef468ae097597031607e.tar.zst
nvim-lspconfig-9977bf5bee4bc58eaa13ef468ae097597031607e.zip
[docgen] Update README.md
skip-checks: true
-rw-r--r--CONFIG.md7
1 files changed, 3 insertions, 4 deletions
diff --git a/CONFIG.md b/CONFIG.md
index aaa0f39e..614d1b07 100644
--- a/CONFIG.md
+++ b/CONFIG.md
@@ -102,14 +102,13 @@ require'lspconfig'.als.setup{}
https://github.com/angular/vscode-ng-language-service
-`angular-language-server` can be installed via npm `npm install @angular/language-server`.
-Be aware there is no global binary and must be run via `node_modules/@angular/language-server/index.js` which can be added as the default cmd.
+`angular-language-server` can be installed via npm `npm install -g @angular/language-server`.
Note, that if you override the default `cmd`, you must also update `on_new_config` to set `new_config.cmd` during startup.
```lua
local project_library_path = "/path/to/project/lib"
-local cmd = {"node", "/path/to/node_modules/@angular/language-server/index.js", "--stdio", "--tsProbeLocations", project_library_path , "--ngProbeLocations", project_library_path}
+local cmd = {"ngserver", "--stdio", "--tsProbeLocations", project_library_path , "--ngProbeLocations", project_library_path}
require'lspconfig'.angularls.setup{
cmd = cmd,
@@ -126,7 +125,7 @@ require'lspconfig'.angularls.setup{}
Commands:
Default Values:
- cmd = { "angularls", "--stdio", "--tsProbeLocations", "", "--ngProbeLocations", "" }
+ cmd = { "ngserver", "--stdio", "--tsProbeLocations", "", "--ngProbeLocations", "" }
filetypes = { "typescript", "html", "typescriptreact", "typescript.tsx" }
root_dir = root_pattern("angular.json", ".git")
```