Put every variables in top of the file for easy copy to another config

This commit is contained in:
Hadi
2024-10-09 15:12:50 +02:00
parent 55c7c7068a
commit 0bd55fdc10
27 changed files with 298 additions and 301 deletions

View File

@@ -1,4 +1,8 @@
{ config, lib, ... }: {
{ config, lib, ... }:
let
accent = "#${config.lib.stylix.colors.base0D}";
background-alt = "#${config.lib.stylix.colors.base01}";
in {
programs.starship = {
enable = true;
settings = {
@@ -10,20 +14,18 @@
"$git_status"
"$character"
];
directory = { style = "#${config.lib.stylix.colors.base0D}"; };
directory = { style = accent; };
character = {
success_symbol = "[](#${config.lib.stylix.colors.base0D})";
success_symbol = "[](${accent})";
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}) ";
symbol = "[](${background-alt}) ";
style = "fg:${accent} bg:${background-alt}";
format = "on [$symbol$branch]($style)[](${background-alt}) ";
};
git_status = {