Skip to main content
Go to Latest
function setLines
import { setLines } from "https://deno.land/x/denops_lsputil@v0.6.2/mod.ts";

Replaces a specific lines within the buffer.

0-based, end-exclusive. Negative indices are interpreted as length+1+index: -1 refers to the index past the end. So to change or delete the last element use start=-2 and end=-1.

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

Parameters

denops: Denops
bufnr: number
start: number
end: number
replacement: string[]