Skip to main content
Latest
function setText
Re-export
import { setText } from "https://deno.land/x/denops_lsputil@v0.9.4/mod.ts";

Replaces a specific range within the buffer.

0-based and columns are utf-16 offset.

If 'start' and 'end' are identical, this method performs an insertion operation. If 'replacement' is an empty array ([]), this method performs a deletion operation within the specified range.

If the range specification is incorrect, an LSPRangeError is thrown.

Parameters

denops: Denops
bufnr: number
range: LSP.Range
replacement: string[]
optional
options: { undojoin: boolean; }

Returns

Promise<void>