This commit is contained in:
2025-08-06 22:17:13 +02:00
parent 1079071b97
commit 8ac2a280a4
5 changed files with 53 additions and 38 deletions

View File

@@ -2,6 +2,7 @@
imports = [ imports = [
./atuin.nix ./atuin.nix
./bat.nix ./bat.nix
./lazygit.nix
./eza.nix ./eza.nix
./fish.nix ./fish.nix
./git.nix ./git.nix

View File

@@ -0,0 +1,42 @@
{
programs.lazygit = {
settings = {
gui = {
theme = {
activeBorderColor = [
"#8839ef"
"bold"
];
inactiveBorderColor = [
"#6c6f85"
];
optionsTextColor = [
"#1e66f5"
];
selectedLineBgColor = [
"#ccd0da"
];
cherryPickedCommitBgColor = [
"#bcc0cc"
];
cherryPickedCommitFgColor = [
"#8839ef"
];
unstagedChangesColor = [
"#d20f39"
];
defaultFgColor = [
"#4c4f69"
];
searchingActiveBorderColor = [
"#df8e1d"
];
};
authorColors = {
"*" = "#7287fd";
};
};
};
};
}

View File

@@ -2,7 +2,7 @@
programs.nixvim.globalOpts = { programs.nixvim.globalOpts = {
expandtab = true; expandtab = true;
shiftwidth = 2; shiftwidth = 2;
foldmethod = "expr"; # foldmethod = "expr";
foldexpr = "nvim_treesitter#foldexpr()"; # foldexpr = "nvim_treesitter#foldexpr()";
}; };
} }

View File

@@ -8,7 +8,9 @@
format = lib.concatStrings [ format = lib.concatStrings [
"$directory" "$directory"
"$\{custom.jj\}" "$git_branch"
"$git_status"
"$git_metrics"
"$line_break" "$line_break"
"$character" "$character"
]; ];
@@ -18,43 +20,14 @@
error_symbol = "[](bold red)"; error_symbol = "[](bold red)";
}; };
custom.jj = { git_branch = {
ignore_timeout = true; format = " [ $branch]($style) ";
description = "The current jj status";
when = "jj root";
symbol = "🥋 ";
command = lib.concatStrings [
"jj log --revisions @ --no-graph --ignore-working-copy --color always --limit 1 --template '"
"separate(\" \","
" change_id.shortest(4),"
" bookmarks,"
" \"|\","
" concat("
" if(conflict, \"💥\"),"
" if(divergent, \"🚧\"),"
" if(hidden, \"👻\"),"
" if(immutable, \"🔒\"),"
" ),"
" raw_escape_sequence(\"\\x1b[1;32m\") ++ if(empty, \"(empty)\"),"
" raw_escape_sequence(\"\\x1b[1;32m\") ++ coalesce("
" truncate_end(29, description.first_line(), \"\"),"
" \"(no description set)\","
" ) ++ raw_escape_sequence(\"\\x1b[0m\"),"
")'"
];
}; };
git_state = {
disabled = true;
};
git_commit = {
disabled = true;
};
git_metrics = { git_metrics = {
disabled = true; disabled = false;
}; added_style = "bold green";
git_branch = { format = "[+$added]($added_style)/[-$deleted]($deleted_style) ";
disabled = true;
}; };
}; };
}; };

View File

@@ -2,7 +2,6 @@
with pkgs; [ with pkgs; [
age age
age-plugin-yubikey age-plugin-yubikey
lazygit
alejandra alejandra
delta delta
docker docker