about summary refs log tree commit diff stats
path: root/yt/src/config/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'yt/src/config/mod.rs')
-rw-r--r--yt/src/config/mod.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/yt/src/config/mod.rs b/yt/src/config/mod.rs
index 36dd3fc..be99caa 100644
--- a/yt/src/config/mod.rs
+++ b/yt/src/config/mod.rs
@@ -21,15 +21,21 @@ pub mod file_system;
 
 #[derive(Serialize, Debug)]
 pub struct Config {
+    pub global: GlobalConfig,
     pub select: SelectConfig,
     pub watch: WatchConfig,
     pub paths: PathsConfig,
     pub download: DownloadConfig,
     pub update: UpdateConfig,
 }
+// These structures could get non-copy fields in the future.
+
+#[derive(Serialize, Debug)]
+#[allow(missing_copy_implementations)]
+pub struct GlobalConfig {
+    pub display_colors: bool,
+}
 #[derive(Serialize, Debug)]
-// This structure could get non-copy fields in the future.
-// The same thing applies to all the other structures here.
 #[allow(missing_copy_implementations)]
 pub struct UpdateConfig {
     pub max_backlog: u32,