Skip to main content
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@v6.4.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 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

Parameters

denops: Denops
event: unknown
opts: unknown

Returns

Promise<unknown>