vimvar-rs: Library to read neovim/vim variables from Rust
Installation
# Cargo.toml
[]
= "0.3"
Usage
// 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: = load_typed_global_var.unwrap;
println!;
For more a more explicit example
use *;
use json;
// Load explicitly a buffer variable (b:my_buffer_var) using neovim
let var = new;
// Load the variable using a different config file versus the standard one
let value = var.load_with_config.expect;
assert_eq!;