import { nvim_exec_autocmds } from "https://deno.land/x/denops_std@v6.3.0/function/nvim/mod.ts";
Execute all autocommands for {event} that match the corresponding {opts}
autocmd-execute
.
Parameters:
- {event} (String|Array) The event or events to execute
- {opts} Dictionary of autocommand options:
- group (string|integer) optional: the autocommand group name
or id to match against.
autocmd-groups
. - pattern (string|array) optional: defaults to "*"autocmd-pattern
. Cannot be used with {buffer}. - buffer (integer) optional: buffer numberautocmd-buflocal
. Cannot be used with {pattern}. - modeline (bool) optional: defaults to true. Process the modeline after the autocommands<nomodeline>
. - data (any): arbitrary data to send to the autocommand callback. Seenvim_create_autocmd()
for details.
See also:
:doautocmd