Skip to main content
Module

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

📚 Standard module for denops.vim
Go to Latest
function nvim_create_augroup
import { nvim_create_augroup } from "https://deno.land/x/denops_std@v6.4.0/function/nvim/mod.ts";

Create or get an autocommand group autocmd-groups.

To get an existing group id, do: >lua local id = vim.api.nvim_create_augroup("MyGroup", { clear = false }) <

Parameters:

  • {name} String: The name of the group
  • {opts} Dictionary Parameters - clear (bool) optional: defaults to true. Clear existing commands if the group already exists autocmd-groups.

Return: Integer id of the created group.

See also:

  • autocmd-groups

Parameters

denops: Denops
name: unknown
opts: unknown

Returns

Promise<unknown>