Documentation
¶
Overview ¶
Completion implements lsp autocomplete features Currently handles: - Complete dot and inside maps for reserved keyword holders (style, labels, etc) - Complete discrete values for keywords like shape - Complete suggestions for formats for keywords like opacity
d2lsp contains functions useful for IDE clients
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBoardAtPosition ¶ added in v0.6.9
Types ¶
type CompletionItem ¶ added in v0.6.9
type CompletionItem struct { Label string Kind CompletionKind Detail string InsertText string }
func GetCompletionItems ¶ added in v0.6.9
func GetCompletionItems(text string, line, column int) ([]CompletionItem, error)
type CompletionKind ¶ added in v0.6.9
type CompletionKind int
const ( KeywordCompletion CompletionKind = iota StyleCompletion ShapeCompletion )
Click to show internal directories.
Click to hide internal directories.