aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/config.rs b/src/config.rs
index 8a333e4..a5df61c 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -149,7 +149,7 @@ pub struct Colors {
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub struct CitekeyFormatter {
- pub fields: Vec<String>,
+ pub fields: Option<Vec<String>>,
pub case: Option<CitekeyCase>,
}
@@ -172,7 +172,7 @@ impl Default for BibiConfig {
},
colors: Self::dark_colors(),
citekey_formatter: CitekeyFormatter {
- fields: Vec::new(),
+ fields: None,
case: None,
},
}
@@ -202,7 +202,7 @@ impl BibiConfig {
Self::dark_colors()
},
citekey_formatter: CitekeyFormatter {
- fields: Vec::new(),
+ fields: None,
case: None,
},
}
@@ -400,6 +400,8 @@ mod tests {
author_color = "38"
title_color = "37"
year_color = "135"
+
+ [citekey_formatter]
"#,
)?;