completion

package
v0.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolve

func Resolve(label string, data map[string]string, folder *workspace.Folder) string

Types

type CompletionItem

type CompletionItem struct {
	Label         string
	Detail        string
	InsertText    string
	FilterText    string
	Kind          int // 1=text, 6=variable, 17=keyword, 18=snippet
	Documentation string
	Data          map[string]string
	TextEdit      *TextEdit
}

func Complete

func Complete(doc *document.Document, pos document.Position, folder *workspace.Folder) []CompletionItem

type PartialElement

type PartialElement struct {
	Kind          PartialKind
	Input         string
	DocPart       string
	Range         document.Range
	HasCloseBrace bool
}

func DetectPartial

func DetectPartial(text string, pos document.Position) *PartialElement

type PartialKind

type PartialKind int
const (
	PartialInlineLink PartialKind = iota
	PartialInlineAnchor
	PartialRefLink
	PartialYamlKey
	PartialKeyref
	PartialHeadingText
	PartialAttrClass
	PartialBlockAttr
	PartialAttrOpen
)

type TextEdit

type TextEdit struct {
	Range   document.Range
	NewText string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL