1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
use ;
/// Initializes the connection between `nvimo` and [`mlua::Lua`].
/// This must be called exactly once at the [mlua module entry point].
///
/// [`mlua::Lua`]: ::mlua::Lua
/// [mlua module entry point]: https://github.com/mlua-rs/mlua#module-mode
///
/// # Examples
///
/// ```ignore
/// use mlua::prelude::*;
///
/// #[mlua::lua_module]
/// fn plugin_entry_point(lua: &Lua) -> LuaResult<LuaTable> {
/// nvimo::init(lua);
/// let plugin_entry_point = lua.create_table()?;
///
/// ...
///
/// Ok(plugin_entry_point)
/// }
/// ```