mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-24 16:21:04 +00:00
17 lines
354 B
Rust
17 lines
354 B
Rust
use mlua::{Lua, Table};
|
|
|
|
pub(super) struct Utils;
|
|
|
|
pub fn install(lua: &Lua) -> mlua::Result<()> {
|
|
let ya: Table = lua.create_table()?;
|
|
|
|
Utils::cache(lua, &ya)?;
|
|
Utils::call(lua, &ya)?;
|
|
Utils::image(lua, &ya)?;
|
|
Utils::plugin(lua, &ya)?;
|
|
Utils::preview(lua, &ya)?;
|
|
Utils::target(lua, &ya)?;
|
|
Utils::text(lua, &ya)?;
|
|
|
|
lua.globals().set("ya", ya)
|
|
}
|