Closed glepnir closed 5 months ago
@glepnir okay, I'll write a full example of how to write neovim plugin written in Go. including https://github.com/neovim/go-client/issues/68#issuecomment-609034423 and #75.
/cc @DenLilleMand
@zchee That‘s sounds great, I am referring to yournvim-go
to write the plugin. It is very useful for me.
+1 from me :) Trying to figure out how can I use signs (set/unset) from Go client as well as how can I read the quickfix list (or rather/better - how can I "subscribe" to it to be notified about changes, without having to re-read it over and over).
I found nothing about sings in the API though: https://neovim.io/doc/user/api.html but I know they are supported since other plugins are using them :) so :shrug:
invited https://github.com/zchee/nvim-lsp which is almost for me, so internal repo. but might be more helped you
@zchee wow I accepted the invitation, and I will read it tomorrow, hoping to get more used methods.
Much appreciated all for the pointers and the invite!
I'm currently also stuck trying to make sense of how nvim.Subscribe
works.
Where is the callback that I have to register?
@ThreeFx okay, I’ll write test code. Maybe it helped you.
Hi folks. If you wonder how nvim.Subscribe
works, or how to use it to get notified of autocmd events, I just figured it out using go-client
, without the plugin API:
Remote plugins will be greatly simplified by https://github.com/neovim/neovim/issues/27949 , and we will update the docs then.
@zchee I think we need a more usage tutorial . I want use this lib to write a plugin. but there is only a easy example ..