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