Skip to content

Commit e025b1e

Browse files
committed
docs: include lsp in the default detection methods
Signed-off-by: Guennadi Maximov C <g.maxc.fox@protonmail.com>
1 parent a688004 commit e025b1e

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
---

doc/project-nvim.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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[]`)

lua/project/config/defaults.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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`.

0 commit comments

Comments
 (0)