macro_rules! print {
    ($($arg:tt)*) => { ... };
}
Expand description

Binding to the global Lua print function. It uses the same syntax as Rust’s format! macro and redirects its output to the Neovim message area.

Examples

use nvim_oxi as nvim;

nvim::print!("Goodbye {}..", String::from("Earth"));
nvim::print!("Hello {planet}!", planet = "Mars");