diff --git a/apps/starship/home.nix b/apps/starship/home.nix index 927ad3a..0b757a4 100644 --- a/apps/starship/home.nix +++ b/apps/starship/home.nix @@ -1,5 +1,59 @@ { programs.starship = { enable = true; + settings = { + # Pro layout: one-line, clear spacing + format = '' + [](surface0)$os$directory[](fg:surface0 bg:peach)$git_branch$git_status[](fg:peach bg:surface1)$c$rust$nodejs$python$golang[](fg:surface1 bg:surface0)$nix_shell[](surface0) + $character''; + + # Palette definition (Catppuccin Mocha-inspired) + palette = "pro_theme"; + palettes.pro_theme = { + surface0 = "#313244"; + surface1 = "#45475a"; + text = "#cdd6f4"; + peach = "#fab387"; + sapphire = "#74c7ec"; + lavender = "#b4befe"; + green = "#a6e3a1"; + }; + + os = { + disabled = false; + format = "[$symbol]($style)"; + style = "bg:surface0 fg:text"; + symbols = {NixOS = " ";}; + }; + + directory = { + style = "bg:surface0 fg:lavender"; + format = "[ $path ]($style)"; + truncation_length = 3; + truncation_symbol = "…/"; + }; + + git_branch = { + symbol = "󰊢 "; + style = "bg:peach fg:surface0"; + format = "[[ $symbol $branch ]($style)]($style)"; + }; + + git_status = { + style = "bg:peach fg:surface0"; + format = "[[($all_status$ahead_behind )]($style)]($style)"; + }; + + nix_shell = { + symbol = "󱄅 "; + style = "bg:surface0 fg:sapphire"; + format = "[ $symbol $state ]($style)"; + }; + + character = { + success_symbol = "[󱞩](bold green)"; + error_symbol = "[󱞩](bold red)"; + }; + }; }; } diff --git a/modules/home/apps.nix b/modules/home/apps.nix index a46e04a..70ce2f0 100644 --- a/modules/home/apps.nix +++ b/modules/home/apps.nix @@ -3,5 +3,6 @@ ../../apps/yazi/home.nix ../../apps/gemini/home.nix ../../apps/firefox/home.nix + ../../apps/starship/home.nix ]; }