Skip to content

Commit 5c55a28

Browse files
committed
feat: remove config and use @vim-fall/config instead
1 parent 2054388 commit 5c55a28

File tree

4 files changed

+8
-149
lines changed

4 files changed

+8
-149
lines changed

builtin/action/submatch.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ import type {
99
Sorter,
1010
Theme,
1111
} from "@vim-fall/core";
12+
import type { GlobalConfig } from "@vim-fall/config/global-config";
13+
import type { ItemPickerParams } from "@vim-fall/config/item-picker";
1214

13-
import type { Actions, GlobalConfig, ItemPickerParams } from "../../config.ts";
1415
import { type Action, defineAction } from "../../action.ts";
1516
import {
1617
type Derivable,
@@ -25,6 +26,11 @@ import { fzf } from "../matcher/fzf.ts";
2526
import { substring } from "../matcher/substring.ts";
2627
import { regexp } from "../matcher/regexp.ts";
2728

29+
type Actions<T extends Detail, A extends string> = ItemPickerParams<
30+
T,
31+
A
32+
>["actions"];
33+
2834
export type SubmatchOptions<T extends Detail, A extends string> = {
2935
/**
3036
* Actions available for the submatch picker.

config.ts

Lines changed: 0 additions & 146 deletions
This file was deleted.

deno.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
"./builtin/theme/double": "./builtin/theme/double.ts",
6767
"./builtin/theme/modern": "./builtin/theme/modern.ts",
6868
"./builtin/theme/single": "./builtin/theme/single.ts",
69-
"./config": "./config.ts",
7069
"./coordinator": "./coordinator.ts",
7170
"./curator": "./curator.ts",
7271
"./item": "./item.ts",
@@ -122,6 +121,7 @@
122121
"@std/path": "jsr:@std/path@^1.0.8",
123122
"@std/streams": "jsr:@std/streams@^1.0.8",
124123
"@std/testing": "jsr:@std/testing@^1.0.4",
124+
"@vim-fall/config": "jsr:@vim-fall/config@^0.17.3",
125125
"@vim-fall/core": "jsr:@vim-fall/core@^0.2.1",
126126
"fzf": "npm:fzf@^0.5.2"
127127
}

mod.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export * from "./action.ts";
2-
export * from "./config.ts";
32
export * from "./coordinator.ts";
43
export * from "./curator.ts";
54
export * from "./item.ts";

0 commit comments

Comments
 (0)