diff options
| author | Github Actions <actions@github> | 2021-01-14 21:02:23 +0000 |
|---|---|---|
| committer | Github Actions <actions@github> | 2021-01-14 21:02:23 +0000 |
| commit | 9977bf5bee4bc58eaa13ef468ae097597031607e (patch) | |
| tree | 813b12ccf8da7b9e3e7f0acff1b98e7209a6b90d | |
| parent | use new global bin command (diff) | |
| download | nvim-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.md | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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") ``` |
