aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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")
```