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

Gets a line-range from 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

Returns

Promise<string[]>