Skip to content

Commit

Permalink
Add preview option for sourceOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jun 21, 2024
1 parent b589def commit fc8d89e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions denops/ddu/base/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export function defaultSourceOptions(): SourceOptions {
matchers: [],
maxItems: 10000,
path: "",
preview: true,
smartCase: false,
sorters: [],
volatile: false,
Expand Down
1 change: 1 addition & 0 deletions denops/ddu/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export type SourceOptions = {
matchers: UserFilter[];
maxItems: number;
path: TreePath;
preview: boolean;
smartCase: boolean;
sorters: UserFilter[];
volatile: boolean;
Expand Down
6 changes: 6 additions & 0 deletions doc/ddu.txt
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,12 @@ path (string | string[])
["/", "aa", "bb", "cc"] (string[])
NOTE: It must be full path.

*ddu-source-option-preview*
preview (boolean)
If it is False, ddu disables preview feature.

Default: v:true

*ddu-source-option-smartCase*
smartCase (boolean)
If it is True, |ddu-filters| don't ignore case when input
Expand Down

0 comments on commit fc8d89e

Please sign in to comment.