summaryrefslogtreecommitdiffstats
path: root/src/config/yaml.rs
diff options
context:
space:
mode:
authorDenis Isidoro <denisidoro@users.noreply.github.com>2024-01-19 06:43:08 -0300
committerGitHub <noreply@github.com>2024-01-19 06:43:08 -0300
commitc45b767edd1c751691d353622ae0ad7336f94ab7 (patch)
tree8bc968a3fb5d16fc3cede21da0475aa3d232e97c /src/config/yaml.rs
parent80e30b508bc04cc91263bb549e527c1c06c31d25 (diff)
parentc3d75383f89a568b0ee0dc6f807f18f1c8bb9311 (diff)
Merge pull request #873 from cyhyraethz/master
fix: #845 Add config option to support tealdeer
Diffstat (limited to 'src/config/yaml.rs')
-rw-r--r--src/config/yaml.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/config/yaml.rs b/src/config/yaml.rs
index 70a5a17..e0c7e87 100644
--- a/src/config/yaml.rs
+++ b/src/config/yaml.rs
@@ -78,6 +78,12 @@ pub struct Shell {
pub finder_command: Option<String>,
}
+#[derive(Deserialize, Debug)]
+#[serde(default)]
+pub struct Client {
+ pub tealdeer: bool,
+}
+
#[derive(Deserialize, Default, Debug)]
#[serde(default)]
pub struct YamlConfig {
@@ -86,6 +92,7 @@ pub struct YamlConfig {
pub cheats: Cheats,
pub search: Search,
pub shell: Shell,
+ pub client: Client,
}
impl YamlConfig {
@@ -162,3 +169,11 @@ impl Default for Shell {
}
}
}
+
+impl Default for Client {
+ fn default() -> Self {
+ Self {
+ tealdeer: false,
+ }
+ }
+}