import { nvim_create_augroup } from "https://deno.land/x/denops_std@v5.0.2/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