Versions in this module Expand all Collapse all v0 v0.0.0 Mar 25, 2019 Changes in this version + var DocIndex = make(map[nvim.Buffer]*Document) + var NoOpts = make(map[string]interface{}) + func AttachToBuffer(v *nvim.Nvim, buf *nvim.Buffer) error + func DetachFromBuffer(v *nvim.Nvim, buf *nvim.Buffer) error + func GenManifest(host string) []byte + func RunPlugin() error + func SetVirtualText(b *nvim.Batch, buf *nvim.Buffer, nsID int, line int, chunks []Chunk, ...) + type Chunk []string + func NewChunk(text, hlGroup string) Chunk + type Document struct + Lines [][]byte + func (d *Document) Get(idx int) ([]byte, bool) + func (d *Document) Hightlight(v *nvim.Nvim, buf nvim.Buffer) + func (d *Document) HightlightHunk(v *nvim.Nvim, buf nvim.Buffer, from, to int) + func (d *Document) NoLines() int + func (d *Document) Update(lines [][]byte, from, to int) (int, int) + type Highlighter struct + func (h *Highlighter) HandleBufChangedTickEvent(buf nvim.Buffer, changedTick int) + func (h *Highlighter) HandleBufLinesEvent(buf *nvim.Buffer, changedTick int, firstLine, lastLine int, data [][]byte, ...) + func (h *Highlighter) HandleBufReadEvent(buf nvim.Buffer, filename string) + func (h *Highlighter) Serve() error + func (p *Highlighter) HandleBufDetachEvent(buf *nvim.Buffer)