nvim-oxi 0.6.0

Rust bindings to all things Neovim
Documentation
1
2
3
4
5
6
7
8
9
10
11
use mlua::prelude::LuaFunction;
use nvim_oxi::{Result, mlua, print};

#[nvim_oxi::plugin]
fn mlua() -> Result<()> {
    print!("Hello from nvim-oxi..");
    let lua = mlua::lua();
    let print: LuaFunction = lua.globals().get("print")?;
    print.call::<()>("..and goodbye from mlua!")?;
    Ok(())
}