1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-13 16:56:30 +00:00
starship/src/configs/character.rs

25 lines
611 B
Rust
Raw Normal View History

use crate::config::ModuleConfig;
use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig)]
pub struct CharacterConfig<'a> {
pub format: &'a str,
pub success_symbol: &'a str,
pub error_symbol: &'a str,
pub vicmd_symbol: &'a str,
pub disabled: bool,
}
impl<'a> Default for CharacterConfig<'a> {
fn default() -> Self {
CharacterConfig {
format: "$symbol ",
success_symbol: "[](bold green)",
error_symbol: "[](bold red)",
vicmd_symbol: "[](bold green)",
disabled: false,
}
}
}