43 lines
1.0 KiB
Nix
43 lines
1.0 KiB
Nix
{ config, lib, ... }: {
|
||
programs.starship = {
|
||
enable = true;
|
||
settings = {
|
||
add_newline = true;
|
||
format = lib.concatStrings [
|
||
"$directory"
|
||
"$git_branch"
|
||
"$git_state"
|
||
"$git_status"
|
||
"$character"
|
||
];
|
||
directory = { style = "#${config.theme.colors.primary-bg}"; };
|
||
|
||
character = {
|
||
success_symbol = "[❯](#${config.theme.colors.primary-bg})";
|
||
error_symbol = "[❯](red)";
|
||
vimcmd_symbol = "[❮](cyan)";
|
||
};
|
||
|
||
git_branch = {
|
||
format = "[$branch]($style)";
|
||
style = "bright-black";
|
||
};
|
||
|
||
git_status = {
|
||
format =
|
||
"[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style)";
|
||
style = "cyan";
|
||
conflicted = "";
|
||
renamed = "";
|
||
deleted = "";
|
||
stashed = "≡";
|
||
};
|
||
|
||
git_state = {
|
||
format = "([$state( $progress_current/$progress_total)]($style)) ";
|
||
style = "bright-black";
|
||
};
|
||
};
|
||
};
|
||
}
|