Skip to content

Files

Latest commit

172e48e · May 9, 2023

History

History

neovim-notifications

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 27, 2022
Sep 17, 2020
May 9, 2023

neovim-notifications

Maven Central javadoc

Neovim notifications module provides a way to receive notifications through Java 9 Flows. Besides that it provides models for all neovim notifications, which can only be checked using instanceof operator currently, but provide an easier way to parse data.

Include it in your dependencies:
Maven:

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

Gradle:

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

Example usage:

    NeovimNotificationHandler notificationHandler = new NeovimNotificationHandler(streamer);

    notificationHandler.uiEvents().subscribe(uiEventSubscriber);
    notificationHandler.bufferEvents().subscribe(bufferEventSubscriber);