From 4a6f1a035e6779552b9189e5becd1d9b412e2647 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 31 May 2025 14:31:35 -0700 Subject: [PATCH] feat: lazygit --- modules/home/profiles.nix | 1 + modules/home/programs/default.nix | 1 + .../default.nix => modules/home/programs/lazygit.nix | 8 ++++++++ 3 files changed, 10 insertions(+) rename snowflake/modules/home/programs/tui/lazygit/default.nix => modules/home/programs/lazygit.nix (92%) diff --git a/modules/home/profiles.nix b/modules/home/profiles.nix index 8ee48e7..9983d2b 100644 --- a/modules/home/profiles.nix +++ b/modules/home/profiles.nix @@ -26,6 +26,7 @@ in { jq = enabled; just = enabled; lazydocker = enabled; + lazygit = enabled; less = enabled; man = enabled; nh = enabled; diff --git a/modules/home/programs/default.nix b/modules/home/programs/default.nix index 75237d3..cc6ed97 100644 --- a/modules/home/programs/default.nix +++ b/modules/home/programs/default.nix @@ -23,6 +23,7 @@ ./jqp.nix ./just.nix ./lazydocker.nix + ./lazygit.nix ./less.nix ./man.nix ./nemo.nix diff --git a/snowflake/modules/home/programs/tui/lazygit/default.nix b/modules/home/programs/lazygit.nix similarity index 92% rename from snowflake/modules/home/programs/tui/lazygit/default.nix rename to modules/home/programs/lazygit.nix index 8bd5d69..e41d743 100644 --- a/snowflake/modules/home/programs/tui/lazygit/default.nix +++ b/modules/home/programs/lazygit.nix @@ -129,6 +129,14 @@ in { command = "git commit --message '{{.Form.Type}}{{ if .Form.Scope }}({{ .Form.Scope }}){{ end }}{{.Form.Breaking}}: {{.Form.Message}}'"; loadingText = "Creating conventional commit..."; } + { + key = "P"; + context = "commits"; + description = "Push a specific commit (and any preceding)"; + command = "git push {{.SelectedRemote.Name}} {{.SelectedLocalCommit.Sha}}:{{.SelectedLocalBranch.Name}}"; + loadingText = "Pushing commit..."; + stream = "yes"; + } ]; }; };