Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
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@v3.9.0/function/nvim/mod.ts";

Creates a new 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>