@@ -31,6 +31,8 @@ type APIInfo struct {
31
31
ErrorTypes map [string ]ErrorType `msgpack:"error_types"`
32
32
Types map [string ]ExtensionType `msgpack:"types"`
33
33
Functions []* Function `msgpack:"functions"`
34
+ UIOptions UIOptions `msgpack:"ui_options"`
35
+ Version Version `msgpack:"version"`
34
36
}
35
37
36
38
type ErrorType struct {
@@ -58,15 +60,39 @@ type Field struct {
58
60
Name string
59
61
}
60
62
63
+ type UIOptions []string
64
+
65
+ type Version struct {
66
+ APICompatible int `msgpack:"api_compatible"`
67
+ APILevel int `msgpack:"api_level"`
68
+ APIPrerelease bool `msgpack:"api_prerelease"`
69
+ Major int `msgpack:"major"`
70
+ Minor int `msgpack:"minor"`
71
+ Patch int `msgpack:"patch"`
72
+ }
73
+
61
74
var errorTypes = map [string ]ErrorType {
62
- "Exception" : {ID : 0 },
63
- "Validation" : {ID : 1 },
75
+ "Exception" : {
76
+ ID : 0 ,
77
+ },
78
+ "Validation" : {
79
+ ID : 1 ,
80
+ },
64
81
}
65
82
66
83
var extensionTypes = map [string ]ExtensionType {
67
- "Buffer" : {ID : 0 , Doc : `// Buffer represents a Nvim buffer.` },
68
- "Window" : {ID : 1 , Doc : `// Window represents a Nvim window.` },
69
- "Tabpage" : {ID : 2 , Doc : `// Tabpage represents a Nvim tabpage.` },
84
+ "Buffer" : {
85
+ ID : 0 ,
86
+ Doc : `// Buffer represents a Nvim buffer.` ,
87
+ },
88
+ "Window" : {
89
+ ID : 1 ,
90
+ Doc : `// Window represents a Nvim window.` ,
91
+ },
92
+ "Tabpage" : {
93
+ ID : 2 ,
94
+ Doc : `// Tabpage represents a Nvim tabpage.` ,
95
+ },
70
96
}
71
97
72
98
func formatNode (fset * token.FileSet , node interface {}) string {
0 commit comments