Skip to content

Commit 41a030d

Browse files
committed
deps: use @vim-fall/custom instead of @vim-fall/config
1 parent e80c93a commit 41a030d

File tree

10 files changed

+15
-12
lines changed

10 files changed

+15
-12
lines changed

action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export type * from "@vim-fall/core/action";
22

33
import type { Denops } from "@denops/std";
44
import type { Action, InvokeParams } from "@vim-fall/core/action";
5-
import { type DerivableArray, deriveArray } from "@vim-fall/config/derivable";
5+
import { type DerivableArray, deriveArray } from "@vim-fall/custom/derivable";
66

77
import type { Detail, DetailUnit } from "./item.ts";
88
import type { Promish } from "./util/_typeutil.ts";

builtin/action/submatch.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,30 @@ import type {
88
Sorter,
99
Theme,
1010
} from "@vim-fall/core";
11-
import type { ItemPickerParams } from "@vim-fall/config/item-picker";
1211
import {
1312
type Derivable,
1413
type DerivableArray,
1514
type DerivableMap,
1615
derive,
1716
deriveArray,
1817
deriveMap,
19-
} from "@vim-fall/config/derivable";
18+
} from "@vim-fall/custom/derivable";
2019
import { unnullish } from "@lambdalisue/unnullish";
2120

2221
import { type Action, defineAction } from "../../action.ts";
2322
import { fzf } from "../matcher/fzf.ts";
2423
import { substring } from "../matcher/substring.ts";
2524
import { regexp } from "../matcher/regexp.ts";
2625

26+
type Actions<T extends Detail = Detail, A extends string = string> =
27+
& Record<string, Action<T>>
28+
& { [key in A]: Action<T> };
29+
2730
export type SubmatchOptions<T extends Detail, A extends string> = {
2831
/**
2932
* Actions available for the submatch picker.
3033
*/
31-
actions?: DerivableMap<ItemPickerParams<T, A>["actions"]>;
34+
actions?: DerivableMap<Actions<T, A>>;
3235
/**
3336
* Default action to invoke.
3437
*/

curator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export type * from "@vim-fall/core/curator";
22

33
import type { Denops } from "@denops/std";
44
import type { CurateParams, Curator } from "@vim-fall/core/curator";
5-
import { type DerivableArray, deriveArray } from "@vim-fall/config/derivable";
5+
import { type DerivableArray, deriveArray } from "@vim-fall/custom/derivable";
66

77
import type { Detail, IdItem } from "./item.ts";
88

deno.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"@std/path": "jsr:@std/path@^1.0.8",
123123
"@std/streams": "jsr:@std/streams@^1.0.8",
124124
"@std/testing": "jsr:@std/testing@^1.0.4",
125-
"@vim-fall/config": "jsr:@vim-fall/config@^0.17.3",
125+
"@vim-fall/custom": "jsr:@vim-fall/custom@^0.1.0",
126126
"@vim-fall/core": "jsr:@vim-fall/core@^0.2.1",
127127
"fzf": "npm:fzf@^0.5.2"
128128
}

matcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export type * from "@vim-fall/core/matcher";
33
import type { Denops } from "@denops/std";
44
import type { Detail, DetailUnit, IdItem } from "@vim-fall/core/item";
55
import type { Matcher, MatchParams } from "@vim-fall/core/matcher";
6-
import { type DerivableArray, deriveArray } from "@vim-fall/config/derivable";
6+
import { type DerivableArray, deriveArray } from "@vim-fall/custom/derivable";
77

88
/**
99
* Defines a matcher that filters items based on a query.

previewer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export type * from "@vim-fall/core/previewer";
22

33
import type { Denops } from "@denops/std";
44
import type { Previewer, PreviewParams } from "@vim-fall/core/previewer";
5-
import { type DerivableArray, deriveArray } from "@vim-fall/config/derivable";
5+
import { type DerivableArray, deriveArray } from "@vim-fall/custom/derivable";
66

77
import type { Detail, DetailUnit, PreviewItem } from "./item.ts";
88
import type { Promish } from "./util/_typeutil.ts";

refiner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
type Derivable,
99
derive,
1010
deriveArray,
11-
} from "@vim-fall/config/derivable";
11+
} from "@vim-fall/custom/derivable";
1212

1313
import type { FlatType } from "./util/_typeutil.ts";
1414
import type { Detail, DetailUnit } from "./item.ts";

renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export type * from "@vim-fall/core/renderer";
22

33
import type { Denops } from "@denops/std";
44
import type { Renderer, RenderParams } from "@vim-fall/core/renderer";
5-
import { type DerivableArray, deriveArray } from "@vim-fall/config/derivable";
5+
import { type DerivableArray, deriveArray } from "@vim-fall/custom/derivable";
66

77
import type { Detail, DetailUnit } from "./item.ts";
88

sorter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export type * from "@vim-fall/core/sorter";
22

33
import type { Denops } from "@denops/std";
44
import type { Sorter, SortParams } from "@vim-fall/core/sorter";
5-
import { type DerivableArray, deriveArray } from "@vim-fall/config/derivable";
5+
import { type DerivableArray, deriveArray } from "@vim-fall/custom/derivable";
66

77
import type { Detail, DetailUnit } from "./item.ts";
88

source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export type * from "@vim-fall/core/source";
22

33
import type { Denops } from "@denops/std";
44
import type { CollectParams, Source } from "@vim-fall/core/source";
5-
import { type DerivableArray, deriveArray } from "@vim-fall/config/derivable";
5+
import { type DerivableArray, deriveArray } from "@vim-fall/custom/derivable";
66

77
import type { Detail, IdItem } from "./item.ts";
88

0 commit comments

Comments
 (0)