Skip to content
This repository was archived by the owner on Aug 29, 2021. It is now read-only.

Commit

Permalink
挿入モードの終了時に抜けるようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
kuuote committed Jul 29, 2021
1 parent f124cb7 commit 8e33daf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion denops/skkeleton/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as jisyo from "./jisyo.ts";
import * as u from "./util.ts";
import { Denops, ensureString, fn, vars } from "./deps.ts";
import { autocmd, Denops, ensureString, fn, vars } from "./deps.ts";
import { getHenkanState, henkan, kakutei } from "./henkan.ts";
import { hiraToKata, mapping } from "./kana.ts";

Expand All @@ -25,6 +25,14 @@ async function init(denops: Denops) {
ensureString(userJisyo);
await jisyo.load(globalJisyo, userJisyo, globalJisyoEncoding);
await mapping(denops);

await autocmd.group(denops, "skkeleton", (helper) => {
helper.define(
"InsertLeave",
"*",
`call denops#request("${denops.name}", "disable", [])`,
);
});
}

export async function main(denops: Denops) {
Expand Down

0 comments on commit 8e33daf

Please sign in to comment.