fix: catppuccin 全量启用,starship 恢复原版配置由 catppuccin 统一管配色

This commit is contained in:
2026-04-11 02:10:56 +08:00
parent 05b6af19ea
commit 03b364150f
2 changed files with 19 additions and 52 deletions
+19 -50
View File
@@ -9,35 +9,30 @@
add_newline = false; add_newline = false;
format = lib.concatStrings [ format = lib.concatStrings [
"[](#a3aed2)"
"$os" "$os"
"[](bg:#769ff0 fg:#a3aed2)" "$username"
"$hostname"
"$directory" "$directory"
"[](fg:#769ff0 bg:#394260)"
"$git_branch" "$git_branch"
"$git_status" "$git_status"
"[](fg:#394260 bg:#212736)"
"$nix_shell" "$nix_shell"
"$nodejs" "$nodejs"
"$python" "$python"
"$go" "$go"
"$rust" "$rust"
"$docker_context" "$docker_context"
"[](fg:#212736 bg:#1d2230)"
"$cmd_duration" "$cmd_duration"
"[ ](fg:#1d2230)" "$line_break"
"\n$character" "$character"
]; ];
character = { character = {
success_symbol = "[](bold #769ff0)"; success_symbol = "[](bold green)";
error_symbol = "[](bold red)"; error_symbol = "[](bold red)";
}; };
os = { os = {
disabled = false; disabled = false;
style = "bg:#a3aed2 fg:#090c0c";
format = "[ $symbol]($style)";
symbols = { symbols = {
NixOS = " "; NixOS = " ";
Linux = " "; Linux = " ";
@@ -47,8 +42,6 @@
}; };
directory = { directory = {
style = "fg:#e3e5e5 bg:#769ff0";
format = "[ $path ]($style)";
truncation_length = 3; truncation_length = 3;
truncation_symbol = "/"; truncation_symbol = "/";
substitutions = { substitutions = {
@@ -58,59 +51,35 @@
}; };
}; };
git_branch = { git_branch.symbol = " ";
symbol = "";
style = "bg:#394260";
format = "[[ $symbol $branch ](fg:#769ff0 bg:#394260)]($style)";
};
git_status = { git_status = {
style = "bg:#394260"; format = "([\\[$all_status$ahead_behind\\]]($style) )";
format = "[[($all_status$ahead_behind )](fg:#769ff0 bg:#394260)]($style)";
}; };
nix_shell = { nix_shell = {
symbol = " "; symbol = " ";
style = "bg:#212736"; format = "[$symbol$state( \\($name\\))]($style) ";
format = "[[ $symbol$state( \\($name\\)) ](fg:#769ff0 bg:#212736)]($style)";
};
nodejs = {
symbol = "";
style = "bg:#212736";
format = "[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)";
detect_extensions = [ ];
};
python = {
symbol = "";
style = "bg:#212736";
format = "[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)";
};
go = {
symbol = "";
style = "bg:#212736";
format = "[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)";
};
rust = {
symbol = "";
style = "bg:#212736";
format = "[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)";
}; };
docker_context = { docker_context = {
symbol = " "; symbol = " ";
style = "bg:#212736"; format = "[$symbol$context]($style) ";
format = "[[ $symbol $context ](fg:#769ff0 bg:#212736)]($style)";
}; };
cmd_duration = { cmd_duration = {
min_time = 2000; min_time = 2000;
style = "bg:#1d2230"; format = "[$duration]($style) ";
format = "[[ $duration ](fg:#a0a9cb bg:#1d2230)]($style)";
}; };
nodejs = {
format = "[$symbol($version)]($style) ";
detect_extensions = [ ];
};
python.format = "[$symbol($version)]($style) ";
go.format = "[$symbol($version)]($style) ";
rust.format = "[$symbol($version)]($style) ";
}; };
}; };
} }
-2
View File
@@ -4,7 +4,5 @@
catppuccin = { catppuccin = {
enable = true; enable = true;
flavor = "mocha"; flavor = "mocha";
nvim.enable = false;
starship.enable = false;
}; };
} }