Skip to content

Commit 9ec04d6

Browse files
committed
👍 Isolate autocmd module from vim
1 parent dd58aeb commit 9ec04d6

File tree

4 files changed

+1
-15
lines changed

4 files changed

+1
-15
lines changed
File renamed without changes.

autocmd/mod.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./helper.ts";

vim/mod.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
export * from "./autocmd.ts";
21
export * from "./vim.ts";

vim/vim.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Context, Denops, Dispatcher } from "../deps.ts";
2-
import { autocmd, AutocmdHelper } from "./autocmd.ts";
32

43
/**
54
* Vim is a facade instance visible from each denops plugins for
@@ -53,19 +52,6 @@ export class Vim {
5352
return await this.#denops.eval(expr, ctx);
5453
}
5554

56-
/**
57-
* Define autocmd in autocmd group.
58-
*
59-
* @param group: An autocmd group name.
60-
* @param main: A function which is used to define autocmds.
61-
*/
62-
async autocmd(
63-
group: string,
64-
main: (helper: AutocmdHelper) => void,
65-
): Promise<void> {
66-
await autocmd(this.#denops, group, main);
67-
}
68-
6955
/**
7056
* Register plugin APIs
7157
*

0 commit comments

Comments
 (0)