コード例 #1
0
            public Embed(string filename, string args)
            {
                _neovimProcess                     = new Process();
                _neovimProcess.StartInfo           = GetStartInfo(filename, args);
                _neovimProcess.EnableRaisingEvents = true;
                _neovimProcess.Exited             += OnProcessExited;
                _neovimProcess.Start();

                _msgPackIo = new MsgPackIO(_neovimProcess.StandardInput, _neovimProcess.StandardOutput,
                                           _neovimProcess.StandardError);
                _msgPackIo.NotificationReceived += OnNotificationReceived;
                IsRunning = true;
            }
コード例 #2
0
ファイル: NeovimClient.cs プロジェクト: demelev/neovim.cs
 /// <summary>
 /// Initializes the Client
 /// </summary>
 /// <param name="path">Path to Neovim.exe</param>
 public NeovimClient(string path)
 {
     _io = new MsgPackIO(path, @"--embed --headless");
     _io.NotificationReceived += OnNotificationReceived;
     _io.StartReadingOutput();
 }
コード例 #3
0
ファイル: NeovimClient.cs プロジェクト: aikeru/neovim.cs
 /// <summary>
 /// Initializes the Client
 /// </summary>
 /// <param name="path">Path to Neovim.exe</param>
 public NeovimClient(string path)
 {
     _io = new MsgPackIO(path, @"--embed --headless");
     _io.NotificationReceived += OnNotificationReceived;
     _io.StartReadingOutput();
 }