From 20c99c6a06a7aa48c2e13fc0b6763d77c44c9b1a Mon Sep 17 00:00:00 2001 From: hankertrix <91734413+hankertrix@users.noreply.github.com> Date: Thu, 27 Feb 2025 02:28:15 +0800 Subject: [PATCH] feat: expose all theme fields in Lua (#2405) --- yazi-plugin/src/config/theme.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/yazi-plugin/src/config/theme.rs b/yazi-plugin/src/config/theme.rs index b7cb42ad..679435e8 100644 --- a/yazi-plugin/src/config/theme.rs +++ b/yazi-plugin/src/config/theme.rs @@ -13,7 +13,15 @@ impl Theme { b"mgr" => lua.to_value_with(&THEME.mgr, OPTS)?, b"mode" => lua.to_value_with(&THEME.mode, OPTS)?, b"status" => lua.to_value_with(&THEME.status, OPTS)?, + b"which" => lua.to_value_with(&THEME.which, OPTS)?, + b"confirm" => lua.to_value_with(&THEME.confirm, OPTS)?, b"spot" => lua.to_value_with(&THEME.spot, OPTS)?, + b"notify" => lua.to_value_with(&THEME.notify, OPTS)?, + b"pick" => lua.to_value_with(&THEME.pick, OPTS)?, + b"input" => lua.to_value_with(&THEME.input, OPTS)?, + b"cmp" => lua.to_value_with(&THEME.cmp, OPTS)?, + b"tasks" => lua.to_value_with(&THEME.tasks, OPTS)?, + b"help" => lua.to_value_with(&THEME.help, OPTS)?, _ => return Ok(Value::Nil), } .into_lua(lua)