testing-helpers

Java Client for Neovim API

License

License

Categories

Categories

Java Languages
GroupId

GroupId

com.ensarsarajcic.neovim.java
ArtifactId

ArtifactId

testing-helpers
Last Version

Last Version

0.2.3
Release Date

Release Date

Type

Type

jar
Description

Description

testing-helpers
Java Client for Neovim API

Download testing-helpers

How to add to project

<!-- https://jarcasting.com/artifacts/com.ensarsarajcic.neovim.java/testing-helpers/ -->
<dependency>
    <groupId>com.ensarsarajcic.neovim.java</groupId>
    <artifactId>testing-helpers</artifactId>
    <version>0.2.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.ensarsarajcic.neovim.java/testing-helpers/
implementation 'com.ensarsarajcic.neovim.java:testing-helpers:0.2.3'
// https://jarcasting.com/artifacts/com.ensarsarajcic.neovim.java/testing-helpers/
implementation ("com.ensarsarajcic.neovim.java:testing-helpers:0.2.3")
'com.ensarsarajcic.neovim.java:testing-helpers:jar:0.2.3'
<dependency org="com.ensarsarajcic.neovim.java" name="testing-helpers" rev="0.2.3">
  <artifact name="testing-helpers" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.ensarsarajcic.neovim.java', module='testing-helpers', version='0.2.3')
)
libraryDependencies += "com.ensarsarajcic.neovim.java" % "testing-helpers" % "0.2.3"
[com.ensarsarajcic.neovim.java/testing-helpers "0.2.3"]

Dependencies

runtime (2)

Group / Artifact Type Version
net.bytebuddy : byte-buddy jar 1.10.2
org.objenesis : objenesis jar 3.1

test (3)

Group / Artifact Type Version
junit : junit jar 4.13.1
org.mockito : mockito-core jar 3.1.0
org.assertj : assertj-core jar 3.13.2

Project Modules

There are no modules declared in this project.

neovim-java

Tests Maven Central Sonatype Nexus (Snapshots) javadoc

Neovim Java client

Consists of following modules:

  • Core RPC javadoc - core of the library providing most basic interface for communicating with Neovim - it can be used without other modules, but other modules are recommended for most uses
  • Reactive Core RPC javadoc - simple wrapper around Core RPC module for providing a reactive interface
  • Unix Socket Connection javadoc - simple addition of another RPCConnection for using unix domain sockets
  • Neovim API javadoc - main interface for communicating with neovim. This is the recommended module to use, it provides a reactive interface and greatly simplified interface, providing complete implementations for all functions provided by Neovim.
  • Neovim Rx API javadoc - small wrapper around Neovim API providing RxJava2 interface instead of Java reactive interface
  • Handler annotations javadoc - addition allowing creation of annotation based handlers for requests and notifications
  • Neovim notifications javadoc - addition allowing usage of notifications through Java 9 Flows interface and also provides data models for all neovim notifications
  • API Explorer javadoc - simple JavaFX application used for testing library and exploring neovim API

Many features are not completely tested and this library was mostly built to experiment with Neovim RPC API, but there should be no issues with using this library.

To include this library right away and start working with Neovim, Neovim API is enough.

Include it in your dependencies:
Maven(Neovim API):

<dependency>
  <groupId>com.ensarsarajcic.neovim.java</groupId>
  <artifactId>neovim-api</artifactId>
  <version>${neovimjava.version}</version>
</dependency>

Gradle(Neovim API):

compile 'com.ensarsarajcic.neovim.java:neovim-api:${neovimjava.version}'

Or if you prefer RxJava2, use Neovim Rx API:
Maven(Neovim Rx API):

<dependency>
  <groupId>com.ensarsarajcic.neovim.java</groupId>
  <artifactId>neovim-rx-api</artifactId>
  <version>${neovimjava.version}</version>
</dependency>

Gradle(Neovim Rx API):

compile 'com.ensarsarajcic.neovim.java:neovim-rx-api:${neovimjava.version}'

If you wish to use latest SNAPSHOT version, it is available in Sonatype snapshots repository.

For more information, check out README of modules you are interested in.

Remote plugin support

This repository contains a small remote plugin example in rplugin-example. To run this example run mvn package and run Neovim with provided vimrc by calling nvim -u rplugin-example/vimrc from project root.

It should be possible to then call the :NeovimJavaIncrementCount command which communicated with java plugin.

Versions

Version
0.2.3
0.2.2
0.2.1
0.2.0
0.1.16
0.1.15
0.1.14
0.1.13
0.1.12
0.1.11
0.1.10