yazi/yazi-plugin/src/utils/plugin.rs
2024-01-22 08:43:51 +08:00

16 lines
320 B
Rust

use mlua::{Lua, Table, Value, Variadic};
use super::Utils;
impl Utils {
pub(super) fn plugin(lua: &Lua, ya: &Table) -> mlua::Result<()> {
ya.set(
"plugin_retrieve",
lua.create_async_function(
|_, (_name, _calls, _args): (String, usize, Variadic<Value>)| async move { Ok(()) },
)?,
)?;
Ok(())
}
}