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

Support neovim/neovim@1ff5b60 APIs #61

Closed zchee closed 4 years ago

zchee commented 5 years ago

Support neovim/neovim@1ff5b60 APIs.

compare:

$ cd $(go env GOPATH)/src/github.com/neovim/go-client/nvim
$ go run apitool.go -compare

> nvim_buf_del_extmark(buffer Buffer, ns_id Integer, id Integer) Boolean { name(nvim_buf_del_extmark) }
> nvim_buf_get_extmark_by_id(buffer Buffer, ns_id Integer, id Integer) ArrayOf(Integer) { name(nvim_buf_get_extmark_by_id) }
> nvim_buf_get_extmarks(buffer Buffer, ns_id Integer, start Object, end Object, opts Dictionary) Array { name(nvim_buf_get_extmarks) }
> nvim_buf_get_virtual_text(buffer Buffer, lnum Integer) Array { name(nvim_buf_get_virtual_text) }
> nvim_buf_set_extmark(buffer Buffer, ns_id Integer, id Integer, line Integer, col Integer, opts Dictionary) Integer { name(nvim_buf_set_extmark) }
> nvim_get_context(opts Dictionary) Dictionary { name(nvim_get_context) }
> nvim_load_context(dict Dictionary) Object { name(nvim_load_context) }
> nvim_paste(data String, crlf Boolean, phase Integer) Boolean { name(nvim_paste) }
> nvim_put(lines ArrayOf(String), type String, after Boolean, follow Boolean) void { name(nvim_put) }
> nvim_ui_pum_set_height(height Integer) void { name(nvim_ui_pum_set_height) }
justinmk commented 5 years ago

Note that the Context API is still experimental.