Skip to main content
Module

x/denops_std/function/nvim/mod.ts>nvim_buf_clear_namespace

📚 Standard module for denops.vim
Go to Latest
function nvim_buf_clear_namespace
import { nvim_buf_clear_namespace } from "https://deno.land/x/denops_std@v6.4.0/function/nvim/mod.ts";

Clears namespaced objects (highlights, extmarks, virtual text) from a region.

Lines are 0-indexed. api-indexing To clear the namespace in the entire buffer, specify line_start=0 and line_end=-1.

Parameters:

  • {buffer} Buffer handle, or 0 for current buffer
  • {ns_id} Namespace to clear, or -1 to clear all namespaces.
  • {line_start} Start of range of lines to clear
  • {line_end} End of range of lines to clear (exclusive) or -1 to clear to end of buffer.

Parameters

denops: Denops
buffer: unknown
ns_id: unknown
line_start: unknown
line_end: unknown

Returns

Promise<unknown>