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 {
}
dbg!("d");
});
handler.await.unwrap();
}