Files
nixy/home/programs/shell/starship.nix
T
Hadi 69c12bf054 Update
Former-commit-id: e83de257ad
2024-10-08 11:29:59 +02:00

46 lines
1.2 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{ config, lib, ... }: {
programs.starship = {
enable = true;
settings = {
add_newline = true;
format = lib.concatStrings [
"$directory"
"$git_branch"
"$git_state"
"$git_status"
"$character"
];
directory = { style = "#${config.lib.stylix.colors.base0D}"; };
character = {
success_symbol = "[](#${config.lib.stylix.colors.base0D})";
error_symbol = "[](red)";
vimcmd_symbol = "[](cyan)";
};
git_branch = {
symbol = "[](#${config.lib.stylix.colors.base01}) ";
style =
"fg:#${config.lib.stylix.colors.base0D} bg:#${config.lib.stylix.colors.base01}";
format =
"on [$symbol$branch]($style)[](#${config.lib.stylix.colors.base01}) ";
};
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";
};
};
};
}