nui 0.0.1

Experimental neovim RPC for UI clients
Documentation
extern crate neovim;

use futures::StreamExt;
use neovim::{Neovim, Value};

#[tokio::main]
async fn main() {
    let mut neovim = neovim::spawn::from_child("/opt/homebrew/bin/nvim");

    let a = neovim
        .request(
            "nvim_ui_attach",
            vec![Value::from(200), Value::from(200), Value::Map(vec![])],
        )
        .await;
    dbg!(a);

    let handler = tokio::spawn(async move {
        while let Some(message) = neovim.next().await {
            // match message {
            //     neovim::Event::Request(method, params, sender) => {
            //         dbg!(method, params);
            //
            //         sender.send(Ok(Value::Nil));
            //     }
            //     neovim::Event::Notification(method, params) => {
            //         dbg!(method);
            //     }
            // }
        }

        dbg!("d");
    });

    handler.await.unwrap();
}