Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.

Commit b42c467

Browse files
authored
Merge pull request #74 from mrjones2014/matjones/73-glow-settings-include
Map `preview_with_glow` and `glow_wrap_width` settings from `include`d config files
2 parents 9d35a93 + 25ac729 commit b42c467

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/settings.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ fn merge_include(config: &mut Config, included: &Config) -> Result<(), ConfigErr
9797
config.set("preview", preview)?;
9898
}
9999

100+
if let Ok(preview_with_glow) = included.get_bool("preview_with_glow") {
101+
config.set("preview_with_glow", preview_with_glow)?;
102+
}
103+
104+
if let Ok(glow_wrap_width) = included.get_str("glow_wrap_width") {
105+
config.set("glow_wrap_width", glow_wrap_width)?;
106+
}
107+
100108
if let Ok(preview_with_bat) = included.get_bool("preview_with_bat") {
101109
config.set("preview_with_bat", preview_with_bat)?;
102110
}

0 commit comments

Comments
 (0)