Minga.LSP.DocumentHighlight (Minga v0.1.0)

Copy Markdown View Source

A document highlight range from the LSP server.

Represents a single occurrence of a symbol in the current buffer, returned by textDocument/documentHighlight. The kind field distinguishes read references from write references.

Summary

Types

LSP document highlight kind.

t()

Functions

Parses an LSP DocumentHighlight JSON object into a struct.

Types

kind()

@type kind() :: :text | :read | :write

LSP document highlight kind.

t()

@type t() :: %Minga.LSP.DocumentHighlight{
  end_col: non_neg_integer(),
  end_line: non_neg_integer(),
  kind: kind(),
  start_col: non_neg_integer(),
  start_line: non_neg_integer()
}

Functions

from_lsp(hl)

@spec from_lsp(map()) :: t()

Parses an LSP DocumentHighlight JSON object into a struct.