import { autocmd } from "https://deno.land/x/ddc_vim@v4.1.0/deps.ts";
const { emit } = autocmd;
Emit an autocmd in a buffer
import { Denops } from "../mod.ts";
import * as autocmd from "./mod.ts";
export async function main(denops: Denops): Promise<void> {
// 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");
}