import { nvim_create_namespace } from "https://deno.land/x/denops_std@v6.5.0/function/nvim/mod.ts";
Creates a new namespace or gets an existing one.
Namespaces are used for buffer highlights and virtual text, see
nvim_buf_add_highlight()
and nvim_buf_set_extmark()
.
Namespaces can be named or anonymous. If name
matches an existing
namespace, the associated id is returned. If name
is an empty string a
new, anonymous namespace is created.
Parameters:
- {name} Namespace name or empty string
Return: Namespace id
Parameters
denops: Denops