diff --git a/modules/home/shells/starship.nix b/modules/home/shells/starship.nix index 5cf4ded..63d5fa2 100644 --- a/modules/home/shells/starship.nix +++ b/modules/home/shells/starship.nix @@ -12,10 +12,11 @@ in { enableTransience = true; settings = { add_newline = true; - right_format = lib.concatStrings [ "$cmd_duration" "$line_break" ]; + # right_format = lib.concatStrings [ "$cmd_duration" "$line_break" ]; format = lib.concatStrings [ "$directory" "$git_branch" + "$git_metrics" "$line_break" "$character" ]; @@ -35,6 +36,11 @@ in { truncation_length = 8; truncation_symbol = ""; }; + git_metrics = { + format = "[+$added]($added_style)/[-$deleted]($deleted_style) "; + added_style = "bold fg:green"; + deleted_style = "bold fg:red"; + }; cmd_duration = { min_time = 1000; format = "[$duration](bold fg:yellow)";