Skip to content

Commit

Permalink
use entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
uga-rosa committed Jun 27, 2024
1 parent d0dd477 commit 826d14e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion denops/denippet/deps/denops.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type { Denops } from "https://deno.land/x/[email protected]/mod.ts";
export type { Denops, Entrypoint } from "https://deno.land/x/[email protected]/mod.ts";
export * as fn from "https://deno.land/x/[email protected]/function/mod.ts";
export * as api from "https://deno.land/x/[email protected]/function/nvim/mod.ts";
export * as vim from "https://deno.land/x/[email protected]/function/vim/mod.ts";
Expand Down
6 changes: 3 additions & 3 deletions denops/denippet/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { au, Denops, fn, g, lambda } from "./deps/denops.ts";
import { au, Denops, Entrypoint, fn, g, lambda } from "./deps/denops.ts";
import { is, u } from "./deps/unknownutil.ts";
import { lsputil } from "./deps/lsp.ts";
import { Loader, NormalizedSnippet } from "./loader.ts";
Expand Down Expand Up @@ -52,7 +52,7 @@ async function searchSnippet(
return bestMatch;
}

export function main(denops: Denops): void {
export const main: Entrypoint = (denops) => {
const session = new Session(denops);
const loader = new Loader(denops);

Expand Down Expand Up @@ -266,4 +266,4 @@ export function main(denops: Denops): void {
session.unguard();
},
};
}
};

0 comments on commit 826d14e

Please sign in to comment.