diff --git a/.luarc.json b/.luarc.json new file mode 100644 index 00000000..771b5265 --- /dev/null +++ b/.luarc.json @@ -0,0 +1,7 @@ +{ + "diagnostics.globals": [ + "ui", + "THEME", + "MANAGER" + ] +} \ No newline at end of file diff --git a/yazi-config/src/theme/theme.rs b/yazi-config/src/theme/theme.rs index 00508ded..9d170e4a 100644 --- a/yazi-config/src/theme/theme.rs +++ b/yazi-config/src/theme/theme.rs @@ -49,13 +49,16 @@ impl Default for Theme { pub struct Manager { cwd: Style, + /// The style for files that have an extension + pub extension: Option