aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-01-05 15:34:56 -0800
committerMichael Lingelbach <m.j.lbach@gmail.com>2021-01-05 15:34:56 -0800
commit3ab7855c670fd28ae188000c8b8f90a64d1eb412 (patch)
tree847f897a796329c3885e952629fa99e31203c4b6
parentDocumentation: improve description of root pattern (diff)
downloadnvim-lspconfig-3ab7855c670fd28ae188000c8b8f90a64d1eb412.tar
nvim-lspconfig-3ab7855c670fd28ae188000c8b8f90a64d1eb412.tar.gz
nvim-lspconfig-3ab7855c670fd28ae188000c8b8f90a64d1eb412.tar.bz2
nvim-lspconfig-3ab7855c670fd28ae188000c8b8f90a64d1eb412.tar.lz
nvim-lspconfig-3ab7855c670fd28ae188000c8b8f90a64d1eb412.tar.xz
nvim-lspconfig-3ab7855c670fd28ae188000c8b8f90a64d1eb412.tar.zst
nvim-lspconfig-3ab7855c670fd28ae188000c8b8f90a64d1eb412.zip
Documentation: improve description of root patterns
-rw-r--r--README.md9
1 files 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()|