Skip to content

Latest commit

History

82 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Neovim Java Client

Join the chat at https://gitter.im/fdinoff/neovim-java-clientBuild Status

Wrapper around the neovim message pack api to talk to a neovim process. This is a WIP lots of functions do not have wrappers yet.

Usage

Standard usage would be to create a connection to a neovim instance. There are two provided connection types.

  • SocketNeovim
    • Connection to a socket of the form address:port.
    • This is NOT a connection to a UNIX socket.
MessagePackRPC.Connectionconnection = newSocketNeovim("127.0.0.1:6666");
  • EmbeddedNeovim
    • Connection to an embedded neovim launched with the --embed flag
MessagePackRPC.Connectionconnection = newEmbeddedNeovim("nvim");

Once you have a connection you can create a Neovim instance that will talk to the connected neovim instance.

try (Neovimneovim = Neovim.connectTo(connection)) {
<useneovim>
}

Notes

UNIX domain sockets are not supported out of the box by this library. These sockets are not supported by the SDK and require JNI code to use. There are libraries that provide this support and you can wrap the resulting socket in a MessagePackRPC.Connection

About

Java wrapper for Neovim Message Pack API

Resources

Stars

27 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages