diff options
| author | Github Actions <actions@github> | 2021-01-05 23:01:53 +0000 |
|---|---|---|
| committer | Github Actions <actions@github> | 2021-01-05 23:01:53 +0000 |
| commit | ebde444d5b3e95d87570b6006bd0555bdc52b508 (patch) | |
| tree | 1998488bb1a34642534014b91f08867e98e6a099 | |
| parent | angularls: update documentation to note on_init overrides cmd (diff) | |
| download | nvim-lspconfig-ebde444d5b3e95d87570b6006bd0555bdc52b508.tar nvim-lspconfig-ebde444d5b3e95d87570b6006bd0555bdc52b508.tar.gz nvim-lspconfig-ebde444d5b3e95d87570b6006bd0555bdc52b508.tar.bz2 nvim-lspconfig-ebde444d5b3e95d87570b6006bd0555bdc52b508.tar.lz nvim-lspconfig-ebde444d5b3e95d87570b6006bd0555bdc52b508.tar.xz nvim-lspconfig-ebde444d5b3e95d87570b6006bd0555bdc52b508.tar.zst nvim-lspconfig-ebde444d5b3e95d87570b6006bd0555bdc52b508.zip | |
[docgen] Update README.md
skip-checks: true
| -rw-r--r-- | CONFIG.md | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -103,6 +103,20 @@ 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. + +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} + +require'lspconfig'.angularls.setup{ + cmd = cmd, + on_new_config = function(new_config,new_root_dir) + new_config.cmd = cmd + end, +} +``` ```lua @@ -4953,6 +4967,12 @@ This server accepts configuration via the `settings` key. null +- **`Lua.runtime.plugin`**: `string` + + Default: `".vscode/lua/plugin.lua"` + + null + - **`Lua.runtime.special`**: `object` null |
