1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
//! # Rust library for Neovim clients //! //! Implements support for rust plugins for //! [Neovim](https://github.com/neovim/neovim) through its msgpack-rpc API. //! //! ### Origins //! //! This library started as a fork of //! [neovim-lib](https://github.com/daa84/neovim-lib) with the goal to utilize //! Rust's `async/await` to allow requests/notification to/from neovim to be //! arbitrarily nested. After the fork, I started implementing more ideas I had //! for this library. //! //! ### Status //! //! As of the end of 2019, I'm somewhat confident to recommend starting to use //! this library. The overall handling should not change anymore. A breaking //! change I kind of expect is adding error variants to //! [`CallError`](crate::error::CallError) when I start working on the API //! (right now, it panics when messages don't have the right format, I'll want //! to return proper errors in that case). //! //! I've not yet worked through the details of what-to-export, but I'm quite //! willing to consider what people need or want. extern crate rmp; extern crate rmpv; #[macro_use] extern crate log; #[cfg(unix)] extern crate unix_socket; pub mod rpc; #[macro_use] pub mod neovim; pub mod create; pub mod error; pub mod examples; pub mod exttypes; pub mod neovim_api; pub mod neovim_api_manual; pub mod runtime; pub mod uioptions; pub use crate::{ exttypes::{Buffer, Tabpage, Window}, neovim::Neovim, rpc::handler::{DefaultHandler, Handler}, uioptions::{UiAttachOptions, UiOption}, }; pub use rmpv::Value;