Class: Neovim::Host
Constant Summary
Constants included from Logging
Logging::DEFAULT_LEVEL, Logging::LEVELS
Instance Method Summary collapse
-
#initialize(plugins, conn) ⇒ Host
constructor
A new instance of Host.
Methods inherited from Provider
Methods inherited from Remote
#client_methods, #client_name, #client_type, #notify, open, open_conn, #request, #run, run_remote, run_sub, start, #start, start_client
Methods included from Logging
Constructor Details
#initialize(plugins, conn) ⇒ Host
Returns a new instance of Host.
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/neovim/host.rb', line 77 def initialize plugins, conn super plugins, conn @plugins[ :base] = DslPlain.open do |dsl| dsl.plain "poll" do start "ok" end dsl.plain "specs", nargs: 1 do |source| p = @plugins[ source] p or raise "Unknown plugin #{source}" p.specs end dsl.plain "nvim_error_event", nargs: 2 do |errid,msg| raise "#{@conn.error errid} from Neovim: #{msg}" end end end |