Attribute Macro nvim_oxi::module

source · []
#[module]
Expand description

Marks the plugin entrypoint.

Examples

use nvim_oxi as oxi;

#[oxi::module]
fn foo() -> oxi::Result<()> {
    Ok(())
}

the compiled library can then be loaded from Neovim with require("foo").