home/git: gitui -> lazygit

This commit is contained in:
Guanran Wang 2024-09-27 18:17:31 +08:00
parent 1e550c33f6
commit a896bb31a3
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF
2 changed files with 14 additions and 17 deletions

View file

@ -42,7 +42,7 @@
};
in
{
gi = "gitui";
gi = "lazygit";
p = "powerprofilesctl";
s = "nh os switch";
v = "nvim";

View file

@ -19,21 +19,18 @@
};
programs.gh.enable = true;
programs.gitui.enable = true;
# vim keybinds
# https://github.com/extrawurst/gitui/blob/master/KEY_CONFIG.md
programs.gitui.keyConfig = ''
(
move_left: Some(( code: Char('h'), modifiers: "")),
move_right: Some(( code: Char('l'), modifiers: "")),
move_up: Some(( code: Char('k'), modifiers: "")),
move_down: Some(( code: Char('j'), modifiers: "")),
stash_open: Some(( code: Char('l'), modifiers: "")),
open_help: Some(( code: F(1), modifiers: "")),
status_reset_item: Some(( code: Char('U'), modifiers: "SHIFT")),
)
'';
programs.lazygit = {
enable = true;
settings = {
gui = {
nerdFontsVersion = "3";
showRandomTip = false;
showBottomLine = false;
};
git = {
paging.pager = "delta --paging=never";
};
};
};
}