Skip to content

Commit

Permalink
nvim: go generate
Browse files Browse the repository at this point in the history
  • Loading branch information
zchee committed Dec 30, 2020
1 parent 0057de1 commit 82f0792
Showing 1 changed file with 31 additions and 33 deletions.
64 changes: 31 additions & 33 deletions nvim/apidef.go
Original file line number Diff line number Diff line change
Expand Up @@ -578,67 +578,65 @@ func SetVVar(name string, value interface{}) {
// Resulting map has keys:
//
// name
// Name of the option
// Name of the option (like 'filetype').
// shortname
// Shortened name of the option
// Shortened name of the option (like 'ft').
// type
// Name of the type of option
// type of option ("string", "integer" or "boolean").
// default
// The default value for the option
//
// Script-Related Keys:
// The default value for the option.
// was_set
// Whether the option was set.
// last_set_sid
// Last set script id
// Last set script id (if any).
// last_set_linenr
// Last set script id, -1 if invalid.
// last_set_lchan
// Last set script id, -1 if invalid.
//
// Flag-Related Keys:
// win
// Window-local option
// buf
// Buffer-local option
// line number where option was set.
// last_set_chan
// Channel where option was set (0 for local).
// scope
// one of "global", "win", or "buf".
// global_local
// Global or Buffer local option
// whether win or buf option has a global value.
// commalist
// List of comma separated values.
// flaglist
// List of single char flags
func AllOptionsInfo() map[string]interface{} {
// List of single char flags.
func AllOptionsInfo() OptionInfo {
name(nvim_get_all_options_info)
returnPtr()
}

// OptionInfo Gets the option information for one option
// OptionInfo Gets the option information for one option.
//
// Resulting dictionary has keys:
//
// name
// Name of the option (like 'filetype')
// Name of the option (like 'filetype').
// shortname
// Shortened name of the option (like 'ft')
// Shortened name of the option (like 'ft').
// type
// type of option ("string", "integer" or "boolean")
// type of option ("string", "integer" or "boolean").
// default
// The default value for the option
// The default value for the option.
// was_set
// Whether the option was set.
//
// last_set_sid
// Last set script id (if any)
// Last set script id (if any).
// last_set_linenr
// line number where option was set
// line number where option was set.
// last_set_chan
// Channel where option was set (0 for local)
// Channel where option was set (0 for local).
// scope
// one of "global", "win", or "buf"
// one of "global", "win", or "buf".
// global_local
// whether win or buf option has a global value
// whether win or buf option has a global value.
// commalist
// List of comma separated values
// List of comma separated values.
// flaglist
// List of single char flags
func OptionInfo(name string) map[string]interface{} {
// List of single char flags.
func OptionInfo(name string) OptionInfo {
name(nvim_get_option_info)
returnPtr()
}

// Option gets an option.
Expand Down

0 comments on commit 82f0792

Please sign in to comment.