How neovim/go-client works
Project type and purpose
• This is an open-source Go library (“go-client”) implementing a Neovim client.
• It provides:
• A MessagePack codec (msgpack package)
• An RPC layer over MessagePack (msgpack/rpc)
• A high-level Neovim API client (nvim package)
• Helpers for writing Go-side Neovim plugins (nvim/plugin)
• A testing harness (nvim/nvimtest)
• Example apps showing remote and plugin usage
File structure
• Top-level: CI config, module files, LICENSE, README.
• “msgpack/”: pure serialization + pack/unpack + field metadata + tests.
• “msgpack/rpc/”: wiring of RPC calls over streams.
• “nvim/”: core client code (API definitions, helpers, UNIX/Windows transports, types, example tests).
• “nvim/plugin/”: code and tests for embedding Go in Neovim as a plugin.
• “nvim/nvimtest/”: in-process Neovim test harness.
• “examples/”: two standalone apps:
• remote client demo (Go main.go)
• plugin demo (Lua script)
README for additional insights
• Confirms its purpose: a Go Neovim client.