diff options
Diffstat (limited to 'src/configs/singularity.rs')
-rw-r--r-- | src/configs/singularity.rs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/configs/singularity.rs b/src/configs/singularity.rs new file mode 100644 index 000000000..4ed192426 --- /dev/null +++ b/src/configs/singularity.rs @@ -0,0 +1,27 @@ +use crate::config::{ModuleConfig, RootModuleConfig, SegmentConfig}; + +use ansi_term::{Color, Style}; +use starship_module_config_derive::ModuleConfig; + +#[derive(Clone, ModuleConfig)] +pub struct SingularityConfig<'a> { + pub symbol: SegmentConfig<'a>, + pub label: &'a str, + pub prefix: &'a str, + pub suffix: &'a str, + pub style: Style, + pub disabled: bool, +} + +impl<'a> RootModuleConfig<'a> for SingularityConfig<'a> { + fn new() -> Self { + SingularityConfig { + symbol: SegmentConfig::default(), + label: "", + prefix: "[", + suffix: "]", + style: Color::Blue.bold().dimmed(), + disabled: false, + } + } +} |