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