mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
fix(buf): fix spacing & harmonize docs with actual configuration (#4450)
* fix(buf): add whitespace after version string * fix: update config schema * fix: config version and bison emoji * fix: update documentation format * fix: dprint * fix: config schema
This commit is contained in:
+2
-2
@@ -21,9 +21,9 @@ pub struct BufConfig<'a> {
|
||||
impl<'a> Default for BufConfig<'a> {
|
||||
fn default() -> Self {
|
||||
BufConfig {
|
||||
format: "with [$symbol ($version)]($style)",
|
||||
format: "with [$symbol($version )]($style)",
|
||||
version_format: "v${raw}",
|
||||
symbol: "",
|
||||
symbol: "🦬 ",
|
||||
style: "bold blue",
|
||||
disabled: false,
|
||||
detect_extensions: vec![],
|
||||
|
||||
+1
-1
@@ -103,7 +103,7 @@ mod tests {
|
||||
.sync_all()
|
||||
.unwrap();
|
||||
let actual = ModuleRenderer::new("buf").path(dir.path()).collect();
|
||||
let expected = Some(format!("with {}", Color::Blue.bold().paint(" v1.0.0")));
|
||||
let expected = Some(format!("with {}", Color::Blue.bold().paint("🦬 v1.0.0 ")));
|
||||
assert_eq!(expected, actual);
|
||||
dir.close().unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user