From 79c6486af2eb40acb6783f3ec0b39e912e5c3081 Mon Sep 17 00:00:00 2001 From: Emilio Ziniades Date: Tue, 14 Nov 2023 18:27:35 +0200 Subject: [PATCH] doc: update util.root_pattern description --- doc/lspconfig.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/lspconfig.txt b/doc/lspconfig.txt index 5a1da207e7..66f770d497 100644 --- a/doc/lspconfig.txt +++ b/doc/lspconfig.txt @@ -371,7 +371,8 @@ below returns a function that takes as its argument the current buffer path. - `util.root_pattern`: function which takes multiple arguments, each corresponding to a different root pattern against which the contents of the current directory are matched using |vim.fn.glob()| while traversing up the - filesystem. + filesystem. Parent directories are traversed once per pattern, in the order + the patterns were specified. > root_dir = util.root_pattern('pyproject.toml', 'requirements.txt') <