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

Fix `SetBufferVirtualText` chunks arg type #51

Closed zchee closed 5 years ago

zchee commented 5 years ago

Fix SetBufferVirtualText chunks arg type and fix godoc comment.

In the chunks arg on SetBufferVirtualText, []interface{} type not developer friendly. Add VirtualTextChunk struct type and change chunks type to []VirtualTextChunk.

The example usage exists in nvim_test.go.

zchee commented 5 years ago

@justinmk Is there a way of checks exists virtual text? such as offset, col size or etc. Currently, virtual_text testcase is not checked.

justinmk commented 5 years ago

@justinmk Is there a way of checks exists virtual text? such as offset, col size or etc.

I think not yet.