Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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@v4.1.4/function/nvim/mod.ts";

Create or get an autocommand group |autocmd-groups|. To get an existing group id, do: 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>