Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/denops_std/function/nvim/mod.ts>nvim_exec_autocmds

📚 Standard module for denops.vim
Go to Latest
function nvim_exec_autocmds
import { nvim_exec_autocmds } from "https://deno.land/x/denops_std@v4.1.4/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 ||. • data (any): arbitrary data to send to the autocommand callback. See |nvim_create_autocmd()| for details. See also: ~ |:doautocmd|

Parameters

denops: Denops
event: unknown
opts: unknown

Returns

Promise<unknown>