diff options
Diffstat (limited to 'src/configs/git_metrics.rs')
-rw-r--r-- | src/configs/git_metrics.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/configs/git_metrics.rs b/src/configs/git_metrics.rs index f3e52e200..ed3e499a2 100644 --- a/src/configs/git_metrics.rs +++ b/src/configs/git_metrics.rs @@ -7,6 +7,7 @@ use starship_module_config_derive::ModuleConfig; pub struct GitMetricsConfig<'a> { pub added_style: &'a str, pub deleted_style: &'a str, + pub only_nonzero_diffs: bool, pub format: &'a str, pub disabled: bool, } @@ -16,7 +17,8 @@ impl<'a> Default for GitMetricsConfig<'a> { GitMetricsConfig { added_style: "bold green", deleted_style: "bold red", - format: "[+$added]($added_style) [-$deleted]($deleted_style) ", + only_nonzero_diffs: true, + format: "([+$added]($added_style) )([-$deleted]($deleted_style) )", disabled: true, } } |