Skip to main content
Latest
import * as denopsLsputil from "https://deno.land/x/denops_lsputil@v0.9.4/mod.ts";

Classes

Context of the line where the cursor is. If in cmdline mode, it is obtained from the command line.

Functions

Applies a list of TextEdit objects to a buffer. Update the buffer and also move the cursor to the appropriate position.

Applies a WorkspaceEdit of LSP.

A Utility function for creating LSP.Position object.

A Utility function for creating LSP.Range object.

Get the cursor position. 0-based and columns are utf-16 offset.

Just like getLines() but only get one line and return it as a string.

Gets a line-range from the buffer.

Gets a range from the buffer.

Returns true if position 'a' is before position as 'b'. If 'a' and 'b' are in same position, return false. If allowSame is set to true, return true even if 'a' and 'b' are in same position.

Replace the range of before and after the cursor with text. If in cmdline mode, edit cmdline. Otherwise, edit the buffer.

Parse snippet body

Set the cursor to the position. 0-based and columns are utf-16 offset.

Replaces a specific lines within the buffer.

Replaces a specific range within the buffer.

Convert offset in utf-8|utf-16|utf-32 to offset in utf-16.

Convert offset in utf-8|utf-16|utf-32 to offset in utf-16.

Convert offset in utf-8|utf-16|utf-32 to offset in utf-16.

Convert offset in utf-8|utf-16|utf-32 to offset in utf-32.

Convert offset in utf-8|utf-16|utf-32 to offset in utf-32.

Convert offset in utf-8|utf-16|utf-32 to offset in utf-32.

Convert offset in utf-8|utf-16|utf-32 to offset in utf-8.

Convert offset in utf-8|utf-16|utf-32 to offset in utf-8.

Convert offset in utf-8|utf-16|utf-32 to offset in utf-8.

Gets a URI from a bufnr.

Gets a URI from a file path.

Gets the buffer for a uri. Creates a new unloaded buffer if no buffer for the uri already exists.

Gets a filename from a URI.

Type Aliases

A type indicating how positions are encoded, specifically what column offsets mean.

Character offsets count UTF-16 code units.

Character offsets count UTF-32 code units.

Character offsets count UTF-8 code units (e.g bytes).