import { emitAll } from "https://deno.land/x/denops_std@v6.5.1/autocmd/common.ts";
Emit an autocmd in all buffers
import type { Entrypoint } from "https://deno.land/x/denops_std@v6.5.1/mod.ts";
import * as autocmd from "https://deno.land/x/denops_std@v6.5.1/autocmd/mod.ts";
export const main: Entrypoint = async (denops) => {
// Emit an autocmd in all buffers
await autocmd.emitAll(denops, "BufEnter");
// Emit multiple autocmds in all buffers
await autocmd.emitAll(denops, ["BufEnter", "WinEnter"]);
// Emit an autocmd in all buffers match with 'Hello'
await autocmd.emitAll(denops, "BufEnter", "Hello");
}