-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathminimum.custom.ts
More file actions
28 lines (26 loc) · 839 Bytes
/
minimum.custom.ts
File metadata and controls
28 lines (26 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import type { Entrypoint } from "@vim-fall/custom";
import * as builtin from "@vim-fall/std/builtin";
export const main: Entrypoint = ({
definePickerFromSource,
definePickerFromCurator,
}) => {
definePickerFromCurator("git-grep", builtin.curator.gitGrep, {
previewers: [builtin.previewer.file],
actions: {
...builtin.action.defaultOpenActions,
...builtin.action.defaultSystemopenActions,
...builtin.action.defaultQuickfixActions,
},
defaultAction: "open",
});
definePickerFromSource("file", builtin.source.file, {
matchers: [builtin.matcher.fzf],
previewers: [builtin.previewer.file],
actions: {
...builtin.action.defaultOpenActions,
...builtin.action.defaultSystemopenActions,
...builtin.action.defaultQuickfixActions,
},
defaultAction: "open",
});
};