From ce9e6062243d254d805bd97882a8adaff4a66616 Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Tue, 5 Jan 2021 15:26:40 -0800 Subject: Documentation: improve description of root pattern --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 754d1aeb..5bb5d280 100644 --- a/README.md +++ b/README.md @@ -180,8 +180,8 @@ lspconfig.SERVER.setup{config} See |lspconfig.util.search_ancestors()| and the functions which use it: - |lspconfig.util.root_pattern(patterns...)| finds an ancestor which - - contains one of the files in `patterns...`. This is equivalent - to coc.nvim's "rootPatterns" + - contains one of the files in `patterns...`. Patterns can take the form of a specific file, such as ".git", or a glob. See `:help glob` for + - allowed patterns. This is equivalent to coc.nvim's "rootPatterns" - Related utilities for common tools: - |lspconfig.util.find_git_root()| - |lspconfig.util.find_node_modules_root()| -- cgit v1.2.3-70-g09d2 From 3ab7855c670fd28ae188000c8b8f90a64d1eb412 Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Tue, 5 Jan 2021 15:34:56 -0800 Subject: Documentation: improve description of root patterns --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5bb5d280..7c9905d2 100644 --- a/README.md +++ b/README.md @@ -179,9 +179,12 @@ lspconfig.SERVER.setup{config} If nil is returned, the buffer is skipped. See |lspconfig.util.search_ancestors()| and the functions which use it: - - |lspconfig.util.root_pattern(patterns...)| finds an ancestor which - - contains one of the files in `patterns...`. Patterns can take the form of a specific file, such as ".git", or a glob. See `:help glob` for - - allowed patterns. This is equivalent to coc.nvim's "rootPatterns" + - |lspconfig.util.root_pattern(pattern1, pattern2...)| is a variadic function which + takes string patterns as arguments, and finds an ancestor + which contains one of the files matching the pattern. + Each pattern can be a specific filename, such as ".git", or a glob. + See `:help glob` for allowed patterns. This is equivalent to + coc.nvim's "rootPatterns" - Related utilities for common tools: - |lspconfig.util.find_git_root()| - |lspconfig.util.find_node_modules_root()| -- cgit v1.2.3-70-g09d2 From 7726533b1662259a1fafaf1c42692b05996e3dd7 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Tue, 5 Jan 2021 23:35:27 +0000 Subject: [docgen] Update README.md skip-checks: true --- CONFIG.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CONFIG.md b/CONFIG.md index ea566087..185e2ceb 100644 --- a/CONFIG.md +++ b/CONFIG.md @@ -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 -- cgit v1.2.3-70-g09d2