Skip to content

Commit 2479d9b

Browse files
committed
Set global include default value to []
1 parent 113a8bb commit 2479d9b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ Both `Search files` and `Find in files`
293293

294294
> you can use glob patterns like `dist`, `*.png`, or `**/dist`.
295295
296+
> `include` defaults to `[]`, which searches everything
297+
296298
`Find in files`
297299

298300
- Match case
@@ -416,7 +418,7 @@ let g:vim_project_config = {
416418
\'check_branch_when_use_session': 0,
417419
\'project_root': './',
418420
\'auto_load_on_start': 0,
419-
\'include': ['./'],
421+
\'include': [],
420422
\'exclude': ['.git', 'node_modules', '.DS_Store', '.github', '.next'],
421423
\'search_include': [],
422424
\'find_in_files_include': [],
@@ -558,7 +560,7 @@ These options, **list or dict types are extended**, others overridden, via `g:
558560

559561
```vim
560562
let g:vim_project_local_config = {
561-
\'include': ['./'],
563+
\'include': [],
562564
\'exclude': ['.git', 'node_modules', '.DS_Store', '.github', '.next'],
563565
\'project_root': './',
564566
\'use_session': 0,

autoload/project.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function! s:Prepare()
4444
\'check_branch_when_use_session': 0,
4545
\'project_root': './',
4646
\'auto_load_on_start': 0,
47-
\'include': ['./'],
47+
\'include': [],
4848
\'search_include': [],
4949
\'find_in_files_include': [],
5050
\'exclude': ['.git', 'node_modules', '.DS_Store', '.github', '.next'],
@@ -543,7 +543,7 @@ function! s:InitProjectConfig(project)
543543
\'',
544544
\'" Local config. Those of list or dict types extend global config. Others override',
545545
\'" let g:vim_project_local_config = {',
546-
\'" \''include'': [''./''],',
546+
\'" \''include'': [],',
547547
\'" \''exclude'': [''.git'', ''node_modules'', ''.DS_Store'', ''.github'', ''.next''],',
548548
\'" \''tasks'': [',
549549
\'" \{',

0 commit comments

Comments
 (0)