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_namespace

📚 Standard module for denops.vim
Go to Latest
function nvim_create_namespace
import { nvim_create_namespace } from "https://deno.land/x/denops_std@v5.2.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
name: unknown

Returns

Promise<unknown>