stuff
This commit is contained in:
@@ -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
|
||||||
|
|||||||
42
profiles/base/home-manager/lazygit.nix
Normal file
42
profiles/base/home-manager/lazygit.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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()";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
with pkgs; [
|
with pkgs; [
|
||||||
age
|
age
|
||||||
age-plugin-yubikey
|
age-plugin-yubikey
|
||||||
lazygit
|
|
||||||
alejandra
|
alejandra
|
||||||
delta
|
delta
|
||||||
docker
|
docker
|
||||||
|
|||||||
Reference in New Issue
Block a user