neovim / go-client

Nvim Go client
https://pkg.go.dev/github.com/neovim/go-client
Apache License 2.0
578 stars 36 forks source link

Add `OpenWindow` config struct type #54

Closed zchee closed 4 years ago

zchee commented 5 years ago

Maybe OpenWindowConfig struct name.

PoC:

// OpenWindowConfig represents a OpenWindow configs.
type OpenWindowConfig struct {
    Relative  string      `msgpack:"relative"`
    Anchar    string      `msgpack:"anchar,omitempty"`
    Width     int64       `msgpack:"width"`
    Height    int64       `msgpack:"height"`
    Row       int64       `msgpack:"row"`
    Col       int64       `msgpack:"col"`
    Win       nvim.Window `msgpack:"win,omitempty"`
    Focusable bool        `msgpack:"focusable"`
    External  bool        `msgpack:"external,omitempty"`
}