vimvar-rs: Library to read neovim/vim variables from Rust

Build Status Crates.io Docs.rs


Installation

```toml

Cargo.toml

[dependencies] vimvar = "0.1" ```

Usage

```rust use vimvar::VimVar;

// Loads g:myglobalvar from default vimrc, returning None if it does not // exist, and casting to type String from the default serdejson::Value // // Only fails unwrap if neovim/vim fails to run or type fails to cast let var: Option = VimVar::loadtypedglobalvar("myglobalvar").unwrap(); println!("Loaded g:myglobalvar = {:?}", var); ```

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in vimvar by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.