Giter VIP home page Giter VIP logo

nvimhost-scala's Introduction

pipeline statusMaven Central

nvimhost-scala

Neovim (nvim) host plugin provider and API client library in Scala.

nvimhost-scala

Screencast

screencast

Goals

  • Provide an API for other projects to integrate with nvim.
  • Provide a library for high-performance plugins with Scala static types.
  • Pay the JVM startup cost only once (when the plugin is first called).

Docs

  • You can find the API client code on Api.scala, it's fully asynchronous based on scala.concurrent.Future
  • If you want to develop a plugin you should read how to write a plugin.

Docs TLDR for Scala 2.13

libraryDependencies += "io.github.viniarck" %% "nvimhost-scala" % "1.1.0"

How to compile with SBT

  • In the CI yml file there's a complete example how to compile, source (from Neovim) and run the plugin.
  • In the test folder, on build.sbt you can find a base configuration to start your build.sbt configuration.

nvimhost-scala's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nvimhost-scala's Issues

How to use with jobstart

Hello! I’m interested in writing a plugin using this library, but there doesn’t appear to be any documentation on how to create an application which Neovim can communicate with via stdin/stdout after starting the app [binary] with jobstart(). Would you mind giving a short example of this, with the necessary Scala and Vimscript code?

For example, the following article details how to do this with Rust and the neovim-lib library: https://blog.usejournal.com/a-detailed-guide-to-writing-your-first-neovim-plugin-in-rust-a81604c606b1

Something like that (but shorter and just the code) would be very helpful.

Update scala version

In the next weeks, I'll figure out whichever latest Scala 2.X version is still compatible and plan the next release.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.