Documentation
¶
Index ¶
Constants ¶
View Source
const DebounceHighlightDuration = 65 * time.Millisecond
Manager handles debounced asynchronous syntax highlighting
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EditorInterface ¶
type EditorInterface interface {
GetBuffer() buffer.Buffer
GetCurrentTree() *sitter.Tree
UpdateSyntaxHighlights(highlights highlighter.HighlightResult, tree *sitter.Tree)
}
EditorInterface defines methods needed from editor
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles syntax highlighting
func NewManager ¶
func NewManager(editor EditorInterface, highlighter *highlighter.Highlighter, redrawFunc func()) *Manager
NewManager creates a new highlighting manager
func (*Manager) AccumulateEdit ¶
AccumulateEdit adds an edit to the pending list and triggers/resets the timer
Click to show internal directories.
Click to hide internal directories.