From 11f596b1ae01a79150b1fe0b034bbb463e2c38c4 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sun, 17 Nov 2024 20:50:45 -0800 Subject: [PATCH] fix(home): Starship git status fixes Need to escape the escapes --- modules/home/programs/starship/rose-pine.nix | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/modules/home/programs/starship/rose-pine.nix b/modules/home/programs/starship/rose-pine.nix index 67309d2..3b8f7c7 100644 --- a/modules/home/programs/starship/rose-pine.nix +++ b/modules/home/programs/starship/rose-pine.nix @@ -107,17 +107,17 @@ in git_status = { disabled = mkDefault false; style = mkDefault "bg:overlay fg:love"; - format = mkDefault (mkFormat "$all_status$ahead_behind"); + format = mkDefault (mkFormat " $all_status$ahead_behind"); up_to_date = mkDefault "[ ✓ ](bg:overlay fg:iris)"; - untracked = mkDefault "[?\($count\)](bg:overlay fg:gold)"; - stashed = mkDefault "[$](bg:overlay fg:iris)"; - modified = mkDefault "[!\($count\)](bg:overlay fg:gold)"; - renamed = mkDefault "[»\($count\)](bg:overlay fg:iris)"; - deleted = mkDefault "[✘\($count\)](style)"; - staged = mkDefault "[++\($count\)](bg:overlay fg:gold)"; - ahead = mkDefault "[⇡\(\${count}\)](bg:overlay fg:foam)"; - diverged = mkDefault "⇕[\[](bg:overlay fg:iris)[⇡\(\${ahead_count}\)](bg:overlay fg:foam)[⇣\(\${behind_count}\)](bg:overlay fg:rose)[\]](bg:overlay fg:iris)"; - behind = mkDefault "[⇣\(\${count}\)](bg:overlay fg:rose)"; + untracked = mkDefault "[?\\($count\\)](bg:overlay fg:gold)"; + stashed = mkDefault "[\\$](bg:overlay fg:iris)"; + modified = mkDefault "[!\\($count\\)](bg:overlay fg:gold)"; + renamed = mkDefault "[»\\($count\\)](bg:overlay fg:iris)"; + deleted = mkDefault "[✘\\($count\\)](style)"; + staged = mkDefault "[++\\($count\\)](bg:overlay fg:gold)"; + ahead = mkDefault "[⇡\\(\${count}\\)](bg:overlay fg:foam)"; + diverged = mkDefault "⇕[\\[](bg:overlay fg:iris)[⇡\\(\${ahead_count}\\)](bg:overlay fg:foam)[⇣\\(\${behind_count}\\)](bg:overlay fg:rose)[\\]](bg:overlay fg:iris)"; + behind = mkDefault "[⇣\\(\${count}\\)](bg:overlay fg:rose)"; }; fill = {