@@ -87,6 +87,8 @@ func BufferChangedTick(buffer Buffer) (changedtick int) {
87
87
}
88
88
89
89
// BufferKeymap gets a list of buffer-local mappings.
90
+ //
91
+ // The mode short-name ("n", "i", "v", ...).
90
92
func BufferKeyMap (buffer Buffer , mode string ) []* Mapping {
91
93
name (nvim_buf_get_keymap )
92
94
}
@@ -612,7 +614,7 @@ func SetVVar(name string, value interface{}) {
612
614
// AllOptionsInfo gets the option information for all options.
613
615
//
614
616
// The dictionary has the full option names as keys and option metadata
615
- // dictionaries as detailed at `nvim_get_option_info` .
617
+ // dictionaries as detailed at OptionInfo .
616
618
//
617
619
// Resulting map has keys:
618
620
//
@@ -621,7 +623,7 @@ func SetVVar(name string, value interface{}) {
621
623
// shortname
622
624
// Shortened name of the option (like 'ft').
623
625
// type
624
- // type of option ("string", "integer " or "boolean").
626
+ // type of option ("string", "number " or "boolean").
625
627
// default
626
628
// The default value for the option.
627
629
// was_set
@@ -640,7 +642,7 @@ func SetVVar(name string, value interface{}) {
640
642
// List of comma separated values.
641
643
// flaglist
642
644
// List of single char flags.
643
- func AllOptionsInfo () OptionInfo {
645
+ func AllOptionsInfo () ( opinfo OptionInfo ) {
644
646
name (nvim_get_all_options_info )
645
647
returnPtr ()
646
648
}
@@ -654,7 +656,7 @@ func AllOptionsInfo() OptionInfo {
654
656
// shortname
655
657
// Shortened name of the option (like 'ft').
656
658
// type
657
- // type of option ("string", "integer " or "boolean").
659
+ // type of option ("string", "number " or "boolean").
658
660
// default
659
661
// The default value for the option.
660
662
// was_set
@@ -673,7 +675,7 @@ func AllOptionsInfo() OptionInfo {
673
675
// List of comma separated values.
674
676
// flaglist
675
677
// List of single char flags.
676
- func OptionInfo (name string ) OptionInfo {
678
+ func OptionInfo (name string ) ( opinfo OptionInfo ) {
677
679
name (nvim_get_option_info )
678
680
returnPtr ()
679
681
}
@@ -911,15 +913,15 @@ func LoadContext(dict map[string]interface{}) (contextMap interface{}) {
911
913
}
912
914
913
915
// Mode gets Nvim's current mode.
914
- func Mode () Mode {
916
+ func Mode () ( mode Mode ) {
915
917
name (nvim_get_mode )
916
918
returnPtr ()
917
919
}
918
920
919
921
// KeyMap gets a list of global (non-buffer-local) mapping definitions.
920
922
//
921
923
// The mode arg is the mode short-name, like `n`, `i`, `v` or etc.
922
- func KeyMap (mode string ) []* Mapping {
924
+ func KeyMap (mode string ) ( maps []* Mapping ) {
923
925
name (nvim_get_keymap )
924
926
}
925
927
@@ -965,7 +967,7 @@ func Commands(opts map[string]interface{}) (commands map[string]*Command) {
965
967
name (nvim_get_commands )
966
968
}
967
969
968
- func APIInfo () []interface {} {
970
+ func APIInfo () ( apiInfo []interface {}) {
969
971
name (nvim_get_api_info )
970
972
}
971
973
0 commit comments