Sha256: e1b155d200d41a36e764398e42ff5e985677bc963a6a4bf684f636364a83291d

Contents?: true

Size: 520 Bytes

Versions: 1

Compression:

Stored size: 520 Bytes

Contents

local chan

local function ensure_job()
  if chan then
    return chan
  end

  chan = vim.fn.jobstart({
    'ruby',
    '-I', 'lib',
    'spec/acceptance/runtime/example_remote_module.rb',
  }, { rpc = true })

  return chan
end

vim.api.nvim_create_user_command('RbSetVar', function(args)
  vim.fn.rpcrequest(ensure_job(), 'rb_set_var', args.fargs)
end, { nargs = '*' })

vim.api.nvim_create_user_command('RbWillRaise', function(args)
  vim.fn.rpcrequest(ensure_job(), 'rb_will_raise', args.fargs)
end, { nargs = 0 })

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
neovim-0.10.0 spec/acceptance/runtime/plugin/example_remote_module.lua