From 8e850a8b4290c08e9ae8021b30dc6f7618f94c14 Mon Sep 17 00:00:00 2001 From: neverness Date: Thu, 21 Nov 2024 19:08:10 +0900 Subject: [PATCH] update --- modules/home/shells/starship.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)";