File tree 2 files changed +12
-12
lines changed
2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -186,25 +186,25 @@ type CommandOptions struct {
186
186
// :help command-addr
187
187
Addr string
188
188
189
+ // Eval is evaluated in Nvim and the result is passed as an argument.
190
+ Eval string
191
+
192
+ // Complete specifies command completion.
193
+ //
194
+ // :help :command-complete
195
+ Complete string
196
+
189
197
// Bang specifies that the command can take a ! modifier (like :q or :w).
190
198
Bang bool
191
199
192
200
// Register specifes that the first argument to the command can be an
193
201
// optional register name (like :del, :put, :yank).
194
202
Register bool
195
203
196
- // Eval is evaluated in Nvim and the result is passed as an argument.
197
- Eval string
198
-
199
204
// Bar specifies that the command can be followed by a "|" and another
200
205
// command. A "|" inside the command argument is not allowed then. Also
201
206
// checks for a " to start a comment.
202
207
Bar bool
203
-
204
- // Complete specifies command completion.
205
- //
206
- // :help :command-complete
207
- Complete string
208
208
}
209
209
210
210
// HandleCommand registers fn as a handler for a Nvim command. The arguments
Original file line number Diff line number Diff line change @@ -466,8 +466,8 @@ type OptionInfo struct {
466
466
// Default is the default value for the option.
467
467
Default interface {} `msgpack:"default"`
468
468
469
- // WasSet whether the option was set .
470
- WasSet bool `msgpack:"was_set "`
469
+ // Scope one of "global", "win", or "buf" .
470
+ Scope string `msgpack:"scope "`
471
471
472
472
// LastSetSid is the last set script id (if any).
473
473
LastSetSid int `msgpack:"last_set_sid"`
@@ -478,8 +478,8 @@ type OptionInfo struct {
478
478
// LastSetChan is the channel where option was set (0 for local).
479
479
LastSetChan int `msgpack:"last_set_chan"`
480
480
481
- // Scope one of "global", "win", or "buf" .
482
- Scope string `msgpack:"scope "`
481
+ // WasSet whether the option was set .
482
+ WasSet bool `msgpack:"was_set "`
483
483
484
484
// GlobalLocal whether win or buf option has a global value.
485
485
GlobalLocal bool `msgpack:"global_local"`
You can’t perform that action at this time.
0 commit comments