Skip to content

Commit 6e80e3b

Browse files
committed
nvim: add EchoChunk type
1 parent 776d6a8 commit 6e80e3b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

nvim/api_tool.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ var nvimTypes = map[string]string{
372372
"[]*UI": "Array",
373373
"[]ExtMarks": "Array",
374374
"[]VirtualTextChunk": "Array",
375+
"[]EchoChunk": "Array",
375376

376377
"[2]int": "ArrayOf(Integer, 2)",
377378
"[]*Mapping": "ArrayOf(Dictionary)",

nvim/types.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,15 @@ type VirtualTextChunk struct {
356356
HLGroup string
357357
}
358358

359+
// EchoChunk represents a echo chunk.
360+
type EchoChunk struct {
361+
// Text is echo text.
362+
Text string `msgpack:",array"`
363+
364+
// HLGroup is echo highlight group.
365+
HLGroup string
366+
}
367+
359368
// WindowConfig represents a configs of OpenWindow.
360369
//
361370
// Relative is the specifies the type of positioning method used for the floating window.

0 commit comments

Comments
 (0)