Skip to content

Commit

Permalink
doc: update util.root_pattern description
Browse files Browse the repository at this point in the history
  • Loading branch information
emilioziniades authored and Emilio Ziniades committed Nov 15, 2023
1 parent 6c9e0f8 commit 36e754a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/lspconfig.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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')
<
Expand Down

0 comments on commit 36e754a

Please sign in to comment.