import { nvim_exec_autocmds } from "https://deno.land/x/denops_std@v5.0.2/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 number
autocmd-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. See nvim_create_autocmd()
for details.
See also:
:doautocmd