@@ -570,6 +570,75 @@ func SetVVar(name string, value interface{}) {
570
570
name (nvim_set_vvar )
571
571
}
572
572
573
+ // AllOptionsInfo gets the option information for all options.
574
+ //
575
+ // The dictionary has the full option names as keys and option metadata
576
+ // dictionaries as detailed at `nvim_get_option_info`.
577
+ //
578
+ // Resulting map has keys:
579
+ //
580
+ // name
581
+ // Name of the option (like 'filetype').
582
+ // shortname
583
+ // Shortened name of the option (like 'ft').
584
+ // type
585
+ // type of option ("string", "integer" or "boolean").
586
+ // default
587
+ // The default value for the option.
588
+ // was_set
589
+ // Whether the option was set.
590
+ // last_set_sid
591
+ // Last set script id (if any).
592
+ // last_set_linenr
593
+ // line number where option was set.
594
+ // last_set_chan
595
+ // Channel where option was set (0 for local).
596
+ // scope
597
+ // one of "global", "win", or "buf".
598
+ // global_local
599
+ // whether win or buf option has a global value.
600
+ // commalist
601
+ // List of comma separated values.
602
+ // flaglist
603
+ // List of single char flags.
604
+ func AllOptionsInfo () OptionInfo {
605
+ name (nvim_get_all_options_info )
606
+ returnPtr ()
607
+ }
608
+
609
+ // OptionInfo Gets the option information for one option.
610
+ //
611
+ // Resulting dictionary has keys:
612
+ //
613
+ // name
614
+ // Name of the option (like 'filetype').
615
+ // shortname
616
+ // Shortened name of the option (like 'ft').
617
+ // type
618
+ // type of option ("string", "integer" or "boolean").
619
+ // default
620
+ // The default value for the option.
621
+ // was_set
622
+ // Whether the option was set.
623
+ // last_set_sid
624
+ // Last set script id (if any).
625
+ // last_set_linenr
626
+ // line number where option was set.
627
+ // last_set_chan
628
+ // Channel where option was set (0 for local).
629
+ // scope
630
+ // one of "global", "win", or "buf".
631
+ // global_local
632
+ // whether win or buf option has a global value.
633
+ // commalist
634
+ // List of comma separated values.
635
+ // flaglist
636
+ // List of single char flags.
637
+ func OptionInfo (name string ) OptionInfo {
638
+ name (nvim_get_option_info )
639
+ returnPtr ()
640
+ }
641
+
573
642
// Option gets an option.
574
643
func Option (name string ) interface {} {
575
644
name (nvim_get_option )
0 commit comments