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; }
/// <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(); }