vimvar 0.2.0

Library that provides ability to read neovim/vim variables
Documentation

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

Build Status Crates.io Docs.rs


Installation

# Cargo.toml
[dependencies]
vimvar = "0.1"

Usage

use vimvar::VimVar;

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

License