File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -384,10 +384,10 @@ require('project').setup()
384384 ---
385385 --- The detection methods get filtered and rid of duplicates during runtime.
386386 --- ---
387- --- Default: `{ 'pattern' }`
387+ --- Default: `{ 'lsp', ' pattern' }`
388388 --- ---
389389 --- @type (' lsp' | ' pattern' )[]
390- detection_methods = { ' pattern' },
390+ detection_methods = { ' lsp ' , ' pattern' },
391391 --- All the patterns used to detect root dir, when **'pattern'** is in
392392 --- detection_methods.
393393 ---
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ Table of Contents *project-nvim.toc*
205205 (see
206206 | project-nvim.pattern-matching | )
207207 - `' lsp' ` : uses the native Neovim LSP
208- (see | vim.lsp | ). CAN BE BUGGY!
208+ (see | vim.lsp | ). CAN BE BUGGY!
209209
210210 ORDER MATTERS HERE! ~
211211 If one is not detected, the other is used
@@ -215,7 +215,7 @@ Table of Contents *project-nvim.toc*
215215 discarded on setup; same thing
216216 with duplicates.
217217
218- Default: `{ 'pattern' }` ~
218+ Default: `{ 'lsp', ' pattern' }` ~
219219
220220
221221 * {patterns} (`string []` )
Original file line number Diff line number Diff line change @@ -35,9 +35,9 @@ local DEFAULTS = {
3535 --- Any values that aren't valid will be discarded on setup;
3636 --- same thing with duplicates.
3737 --- ---
38- --- Default: `{ 'pattern' }`
38+ --- Default: `{ 'lsp', ' pattern' }`
3939 --- ---
40- detection_methods = { ' pattern' }, --- @type (' lsp' | ' pattern' )[]
40+ detection_methods = { ' lsp ' , ' pattern' }, --- @type (' lsp' | ' pattern' )[]
4141 --- All the patterns used to detect the project's root directory.
4242 ---
4343 --- By default it only triggers when `'pattern'` is in `detection_methods`.
You can’t perform that action at this time.
0 commit comments