Skip to content

Commit cd5802f

Browse files
committed
feat!: rename config to custom
Configuration -> We use Vim script / Lua Customization -> We use TypeScript
1 parent 8c0f9bc commit cd5802f

17 files changed

+133
-164
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ for **"Filter All."**
3030

3131
Users must install [Deno] version 2.x. Additionally, the `nerdfont` renderer is
3232
enabled by default, so configure your terminal to use a [NerdFont], or disable
33-
it by removing the `builtin.renderer.nerdfont` renderer from the configuration
34-
(`:FallConfig`).
33+
it by removing the `builtin.renderer.nerdfont` renderer from the custom file
34+
(`:FallCustom`).
3535

3636
[Deno]: https://deno.land
3737
[NerdFont]: https://www.nerdfonts.com
@@ -76,7 +76,7 @@ Fall line README.md
7676
| Repository | Package | Description |
7777
| ------------------------------------------------------------------------- | ----------------------------------------------------- | ------------------------------------------------ |
7878
| [vim-fall/deno-fall-core](https://github.com/vim-fall/deno-fall-core) | [`@vim-fall/core`](https://jsr.io/@vim-fall/core) | Core types for Fall. Not meant for external use. |
79-
| [vim-fall/deno-fall-custom](https://github.com/vim-fall/deno-fall-custom) | [`@vim-fall/custom`](https://jsr.io/@vim-fall/custom) | Library to customize Fall. |
79+
| [vim-fall/deno-fall-custom](https://github.com/vim-fall/deno-fall-custom) | [`@vim-fall/custom`](https://jsr.io/@vim-fall/custom) | Library to customize Fall. |
8080
| [vim-fall/deno-fall-std](https://github.com/vim-fall/deno-fall-std) | [`@vim-fall/std`](https://jsr.io/@vim-fall/std) | Standard library for using Fall. |
8181
| [vim-fall/deno-fall-extra](https://github.com/vim-fall/deno-fall-extra) | [`@vim-fall/extra`](https://jsr.io/@vim-fall/extra) | Extra library for using Fall. |
8282

autoload/fall/command/FallConfig.vim

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

autoload/fall/command/FallConfigRecache.vim

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

autoload/fall/command/FallConfigReload.vim

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function! fall#command#FallCustom#call() abort
2+
if denops#plugin#wait('fall') isnot# 0
3+
return
4+
endif
5+
call denops#notify('fall', 'custom:edit', [])
6+
endfunction
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function! fall#command#FallCustomRecache#call() abort
2+
if denops#plugin#wait('fall') isnot# 0
3+
return
4+
endif
5+
call denops#notify('fall', 'custom:recache', [])
6+
endfunction
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function! fall#command#FallCustomReload#call() abort
2+
if denops#plugin#wait('fall') isnot# 0
3+
return
4+
endif
5+
call denops#notify('fall', 'custom:reload', [])
6+
endfunction
File renamed without changes.

denops/fall/_assets/minimum.config.ts

Lines changed: 0 additions & 59 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import type { Entrypoint } from "jsr:@vim-fall/custom@^0.1.0";
2+
import * as builtin from "jsr:@vim-fall/std@^0.7.0/builtin";
3+
4+
export const main: Entrypoint = ({
5+
definePickerFromSource,
6+
definePickerFromCurator,
7+
}) => {
8+
definePickerFromCurator("git-grep", builtin.curator.gitGrep, {
9+
previewers: [builtin.previewer.file],
10+
actions: {
11+
...builtin.action.defaultOpenActions,
12+
...builtin.action.defaultSystemopenActions,
13+
...builtin.action.defaultQuickfixActions,
14+
},
15+
defaultAction: "open",
16+
});
17+
18+
definePickerFromSource("file", builtin.source.file, {
19+
matchers: [builtin.matcher.fzf],
20+
previewers: [builtin.previewer.file],
21+
actions: {
22+
...builtin.action.defaultOpenActions,
23+
...builtin.action.defaultSystemopenActions,
24+
...builtin.action.defaultQuickfixActions,
25+
},
26+
defaultAction: "open",
27+
});
28+
};

0 commit comments

Comments
 (0)