From cb3d3ca5dc562324c696b2b9137784f0b5bdef94 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..4a5cce19cf 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 are specified. > root_dir = util.root_pattern('pyproject.toml', 'requirements.txt') <