/neovim-ruby

Primary LanguageRubyMIT LicenseMIT

Neovim Ruby

Travis Coverage Status

Ruby bindings for Neovim.

Warning: This project is currently incomplete and unstable.

Installation

Add this line to your application's Gemfile:

gem "neovim"

And then execute:

$ bundle

Or install it yourself as:

$ gem install neovim

Usage

You can control a running nvim process by connecting to $NVIM_LISTEN_ADDRESS. Start it up like this:

$ NVIM_LISTEN_ADDRESS=/tmp/nvim.sock nvim

You can then connect to that socket in Ruby to get a Neovim::Client:

require "neovim"
client = Neovim.connect("/tmp/nvim.sock")

Contributing

  1. Fork it (http://github.com/alexgenco/neovim-ruby/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request