百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
N

neovim-ruby

> 开发工具
开源

Ruby 对 Neovim 的支持

368 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Ruby 对 Neovim 的支持

Neovim Ruby

Ruby support for Neovim.

Installation

Add this line to your application's Gemfile:

ruby
gem "neovim"

And then execute:

bash
bundle

Or install it yourself as:

bash
gem install neovim

Usage

Neovim supports the --listen option for specifying an address to serve its RPC API. To connect to Neovim over a Unix socket, start it up like this:

bash
$ nvim --listen /tmp/nvim.sock

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

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

Refer to the Neovim docs for other ways to connect to nvim, and the Neovim::Client docs for a summary of the client interface.

Remote Modules

Remote modules allow users to define custom handlers in Ruby. To implement a remote module:

  • Define your handlers in a plain Ruby script that imports neovim
  • Spawn the script from lua using jobstart
  • Define commands in lua using nvim_create_user_command that route to the job's channel ID

For usage examples, see:

  • example_remote_module.rb
  • example_remote_module.lua
  • remote_module_spec.vim

Note: Remote modules are a replacement for the deprecated "remote plugin" architecture. See https://github.com/neovim/neovim/issues/27949 for details.

Vim Plugin Support

The Neovim gem also acts as a compatibility layer for Ruby plugins written for vim. The :ruby, :rubyfile, and :rubydo commands are intended to match their original behavior, and their documentation can be found here.

Links

  • Source:
  • Bugs:
  • CI:
  • Documentation:
    • Latest Gem:
    • Main:

Contributing

  1. Fork it ()
  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

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rubyneovimneovim-clientsneovim-pluginneovim-remote

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具