Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct { Num int Name string Contents []byte Version int Listener int // contains filtered or unexported fields }
A Buffer is govim's representation of the current state of a buffer in Vim i.e. it is versioned.
func (*Buffer) ToTextDocumentIdentifier ¶
func (b *Buffer) ToTextDocumentIdentifier() protocol.TextDocumentIdentifier
ToTextDocumentIdentifier converts b to a protocol.TextDocumentIdentifier
type Point ¶
type Point struct {
// contains filtered or unexported fields
}
Point represents a position within a Buffer
func (Point) Col ¶
Col refers to the byte index (1-based) in Line() in the buffer. This is often referred to as the column number, but is definitely not the visual column as seen on screen. This is how Vim refers to column positions.
func (Point) GoplsLine ¶
GoplsLine is the 0-index line in the buffer, returned as a float64 value. This is how gopls refers to lines.
func (Point) Line ¶
Line refers to the 1-indexed line in the buffer. This is how Vim refers to line numbers.
func (Point) ToPosition ¶
ToPosition converts p to a protocol.Position
type WatchedFile ¶ added in v0.0.11
A WatchedFile is a file we are watching but that is not loaded as a buffer in Vim
func (*WatchedFile) URI ¶ added in v0.0.11
func (w *WatchedFile) URI() span.URI