From 8da84cde15bf8a72e0f7a2bf05bf4b0db8c4bb6d Mon Sep 17 00:00:00 2001 From: Github Actions Date: Mon, 31 Aug 2020 12:25:36 +0000 Subject: [docgen] Update README.md skip-checks: true --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8261309f..c1e8af7e 100644 --- a/README.md +++ b/README.md @@ -229,7 +229,7 @@ nvim_lsp.SERVER.setup{config} the second parameter instead. Useful for doing buffer-local setup. {on_new_config} - `function(new_config)` will be executed after a new configuration has been + `function(new_config, new_root_dir)` will be executed after a new configuration has been created as a result of {root_dir} returning a unique value. You can use this as an opportunity to further modify the new_config or use it before it is sent to |vim.lsp.start_client()|. @@ -241,6 +241,7 @@ The following LSP configs are included. Follow a link to find documentation for that config. - [als](#als) +- [angularls](#angularls) - [bashls](#bashls) - [ccls](#ccls) - [clangd](#clangd) @@ -323,6 +324,28 @@ require'nvim_lsp'.als.setup{} root_dir = util.root_pattern("Makefile", ".git") ``` +## angularls + +https://github.com/angular/vscode-ng-language-service + +`angular-language-server` can be installed via `:LspInstall angularls` + +If you prefer to install this yourself you can through 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` + +Can be installed in Nvim with `:LspInstall angularls` + +```lua +require'nvim_lsp'.angularls.setup{} + + Commands: + + Default Values: + cmd = { "/home/runner/.cache/nvim/nvim_lsp/angularls/node_modules/.bin/angularls", "--stdio", "--tsProbeLocations", "", "--ngProbeLocations", "" } + filetypes = { "typescript", "html", "typescriptreact", "typescript.tsx" } + root_dir = root_pattern("angular.json", ".git") +``` + ## bashls https://github.com/mads-hartmann/bash-language-server -- cgit v1.2.3-70-g09d2