func (b *Batch) HLIDByName(name string, highlightID *int) {
	b.call("nvim_get_hl_id_by_name", highlightID, name)
}
HLIDByName gets a highlight group by name.
package nvim
import (
	"fmt"
	"github.com/neovim/go-client/msgpack"
	"github.com/neovim/go-client/msgpack/rpc"
)
const (
	exceptionError  = 0
	validationError = 1
)
func withExtensions() rpc.Option {
	return rpc.WithExtensions(msgpack.ExtensionMap{
		0: func(p []byte) (interface{}, error) {
			x, err := decodeExt(p)
			return Buffer(x), err
		},
		2: func(p []byte) (interface{}, error) {
			x, err := decodeExt(p)
			return Tabpage(x), err
		},
		1: func(p []byte) (interface{}, error) {
			x, err := decodeExt(p)
			return Window(x), err
		},
	})
}
type Buffer int
func (x Buffer) MarshalMsgPack(enc *msgpack.Encoder) error {
	return enc.PackExtension(0, encodeExt(int(x)))
}
func (x *Buffer) UnmarshalMsgPack(dec *msgpack.Decoder) error {
	n, err := unmarshalExt(dec, 0, x)
	*x = Buffer(n)
	return err
}
func (x Buffer) String() string {
	return fmt.Sprintf("Buffer:%d", int(x))
}
type Tabpage int
func (x Tabpage) MarshalMsgPack(enc *msgpack.Encoder) error {
	return enc.PackExtension(2, encodeExt(int(x)))
}
func (x *Tabpage) UnmarshalMsgPack(dec *msgpack.Decoder) error {
	n, err := unmarshalExt(dec, 2, x)
	*x = Tabpage(n)
	return err
}
func (x Tabpage) String() string {
	return fmt.Sprintf("Tabpage:%d", int(x))
}
type Window int
func (x Window) MarshalMsgPack(enc *msgpack.Encoder) error {
	return enc.PackExtension(1, encodeExt(int(x)))
}
func (x *Window) UnmarshalMsgPack(dec *msgpack.Decoder) error {
	n, err := unmarshalExt(dec, 1, x)
	*x = Window(n)
	return err
}
func (x Window) String() string {
	return fmt.Sprintf("Window:%d", int(x))
}
func (v *Nvim) Exec(src string, output bool) (out string, err error) {
	err = v.call("nvim_exec", &out, src, output)
	return out, err
}
func (b *Batch) Exec(src string, output bool, out *string) {
	b.call("nvim_exec", out, src, output)
}
func (v *Nvim) Command(cmd string) error {
	return v.call("nvim_command", nil, cmd)
}
func (b *Batch) Command(cmd string) {
	b.call("nvim_command", nil, cmd)
}
func (v *Nvim) HLByID(id int, rgb bool) (highlight *HLAttrs, err error) {
	var result HLAttrs
	err = v.call("nvim_get_hl_by_id", &result, id, rgb)
	return &result, err
}
func (b *Batch) HLByID(id int, rgb bool, highlight *HLAttrs) {
	b.call("nvim_get_hl_by_id", highlight, id, rgb)
}
func (v *Nvim) HLIDByName(name string) (highlightID int, err error) {
	err = v.call("nvim_get_hl_id_by_name", &highlightID, name)
	return highlightID, err
}