clean up lazygit module

This commit is contained in:
Yan Lin 2026-02-11 19:46:47 +01:00
parent 819f3c3772
commit 622265bd6e

View file

@ -5,43 +5,22 @@
enable = true; enable = true;
settings = { settings = {
gui = { gui = {
# Gruvbox dark theme colors
theme = { theme = {
# Light text on dark backgrounds
lightTheme = false; lightTheme = false;
# Active panel border color (bright blue)
activeBorderColor = ["#458588" "bold"]; activeBorderColor = ["#458588" "bold"];
# Inactive panel border color (dark gray)
inactiveBorderColor = ["#504945"]; inactiveBorderColor = ["#504945"];
# Search text color
searchingActiveBorderColor = ["#fabd2f" "bold"]; searchingActiveBorderColor = ["#fabd2f" "bold"];
# Options text color
optionsTextColor = ["#83a598"]; optionsTextColor = ["#83a598"];
# Selected line colors
selectedLineBgColor = ["#3c3836"]; selectedLineBgColor = ["#3c3836"];
selectedRangeBgColor = ["#3c3836"]; selectedRangeBgColor = ["#3c3836"];
# Cherry picked commit colors
cherryPickedCommitBgColor = ["#458588"]; cherryPickedCommitBgColor = ["#458588"];
cherryPickedCommitFgColor = ["#ebdbb2"]; cherryPickedCommitFgColor = ["#ebdbb2"];
# Marked base commit for rebase
markedBaseCommitBgColor = ["#fabd2f"]; markedBaseCommitBgColor = ["#fabd2f"];
markedBaseCommitFgColor = ["#282828"]; markedBaseCommitFgColor = ["#282828"];
# Unstagged changes color
unstagedChangesColor = ["#fb4934"]; unstagedChangesColor = ["#fb4934"];
# Default text color
defaultFgColor = ["#ebdbb2"]; defaultFgColor = ["#ebdbb2"];
}; };
# UI settings
showFileTree = true; showFileTree = true;
showListFooter = true; showListFooter = true;
showRandomTip = false; showRandomTip = false;
@ -50,53 +29,24 @@
showPanelJumps = true; showPanelJumps = true;
commandLogSize = 8; commandLogSize = 8;
splitDiff = "auto"; splitDiff = "auto";
# Screen mode (previously windowSize)
screenMode = "normal"; screenMode = "normal";
# Border style
border = "rounded"; border = "rounded";
# Commit length
commitLength = { commitLength = {
show = true; show = true;
}; };
# Mouse support
mouseEvents = true; mouseEvents = true;
# Skip discard changes warning
skipDiscardChangeWarning = false; skipDiscardChangeWarning = false;
# Skip stash warning
skipStashWarning = false; skipStashWarning = false;
# Side panel width
sidePanelWidth = 0.3333; sidePanelWidth = 0.3333;
# Expand focused side panel
expandFocusedSidePanel = false; expandFocusedSidePanel = false;
# Main panel split mode
mainPanelSplitMode = "flexible"; mainPanelSplitMode = "flexible";
# Enlarge active view
enlargedSideViewLocation = "left"; enlargedSideViewLocation = "left";
# Language
language = "en"; language = "en";
# Emoji
nerdFontsVersion = "3"; nerdFontsVersion = "3";
# Diff context size
diffContextSize = 3; diffContextSize = 3;
# Scroll amount per keystroke
scrollHeight = 20; scrollHeight = 20;
}; };
# Git settings
git = { git = {
pagers = [ pagers = [
{ {
@ -104,70 +54,48 @@
pager = "delta --dark --paging=never"; pager = "delta --dark --paging=never";
} }
]; ];
# Commit settings
commit = { commit = {
signOff = false; signOff = false;
autoWrapCommitMessage = true; autoWrapCommitMessage = true;
autoWrapWidth = 72; autoWrapWidth = 72;
}; };
# Merge settings
merging = { merging = {
manualCommit = false; manualCommit = false;
args = ""; args = "";
}; };
# Skip hook prefix
skipHookPrefix = "WIP"; skipHookPrefix = "WIP";
# Auto fetch
autoFetch = true; autoFetch = true;
autoRefresh = true; autoRefresh = true;
# Branch log cmd
branchLogCmd = "git log --graph --color=always --abbrev-commit --decorate --date=relative --pretty=medium {{branchName}} --"; branchLogCmd = "git log --graph --color=always --abbrev-commit --decorate --date=relative --pretty=medium {{branchName}} --";
# All branches log cmds (array format)
allBranchesLogCmds = [ allBranchesLogCmds = [
"git log --graph --all --color=always --abbrev-commit --decorate --date=relative --pretty=medium" "git log --graph --all --color=always --abbrev-commit --decorate --date=relative --pretty=medium"
]; ];
# Disable force pushing
disableForcePushing = false; disableForcePushing = false;
# Commit prefixes
commitPrefixes = {}; commitPrefixes = {};
# Parse emoji
parseEmoji = false; parseEmoji = false;
# Log settings
log = { log = {
order = "topo-order"; order = "topo-order";
showGraph = "always"; showGraph = "always";
showWholeGraph = false; showWholeGraph = false;
}; };
}; };
# Refresher settings
refresher = { refresher = {
refreshInterval = 10; refreshInterval = 10;
fetchInterval = 60; fetchInterval = 60;
}; };
# Update settings
update = { update = {
method = "never"; method = "never";
}; };
# Confirmation on quit
confirmOnQuit = false; confirmOnQuit = false;
# Quit on top level return
quitOnTopLevelReturn = false; quitOnTopLevelReturn = false;
# Keybindings
keybinding = { keybinding = {
universal = { universal = {
quit = "q"; quit = "q";
@ -212,8 +140,6 @@
scrollDownMain = "<c-f>"; scrollDownMain = "<c-f>";
executeShellCommand = ":"; executeShellCommand = ":";
createRebaseOptionsMenu = "m"; createRebaseOptionsMenu = "m";
# Diff view
diffingMenu = "W"; diffingMenu = "W";
diffingMenu-alt = "<c-e>"; diffingMenu-alt = "<c-e>";
copyToClipboard = "<c-o>"; copyToClipboard = "<c-o>";
@ -223,15 +149,13 @@
increaseContextInDiffView = "}"; increaseContextInDiffView = "}";
decreaseContextInDiffView = "{"; decreaseContextInDiffView = "{";
}; };
# Status panel
status = { status = {
checkForUpdate = "u"; checkForUpdate = "u";
recentRepos = "<enter>"; recentRepos = "<enter>";
allBranchesLogGraph = "a"; allBranchesLogGraph = "a";
}; };
# Files panel
files = { files = {
commitChanges = "c"; commitChanges = "c";
commitChangesWithoutHook = "w"; commitChangesWithoutHook = "w";
@ -250,8 +174,7 @@
openMergeOptions = "M"; openMergeOptions = "M";
openStatusFilter = "<c-b>"; openStatusFilter = "<c-b>";
}; };
# Branches panel
branches = { branches = {
createPullRequest = "o"; createPullRequest = "o";
viewPullRequestOptions = "O"; viewPullRequestOptions = "O";
@ -268,13 +191,11 @@
setUpstream = "u"; setUpstream = "u";
fetchRemote = "f"; fetchRemote = "f";
}; };
# Worktrees
worktrees = { worktrees = {
viewWorktreeOptions = "w"; viewWorktreeOptions = "w";
}; };
# Commits panel
commits = { commits = {
squashDown = "s"; squashDown = "s";
renameCommit = "r"; renameCommit = "r";
@ -301,54 +222,41 @@
viewBisectOptions = "b"; viewBisectOptions = "b";
startInteractiveRebase = "i"; startInteractiveRebase = "i";
}; };
# Stash panel
stash = { stash = {
popStash = "g"; popStash = "g";
renameStash = "r"; renameStash = "r";
}; };
# Commit files panel
commitFiles = { commitFiles = {
checkoutCommitFile = "c"; checkoutCommitFile = "c";
}; };
# Main panel
main = { main = {
toggleSelectHunk = "a"; toggleSelectHunk = "a";
pickBothHunks = "b"; pickBothHunks = "b";
editSelectHunk = "E"; editSelectHunk = "E";
}; };
# Submodules panel
submodules = { submodules = {
init = "i"; init = "i";
update = "u"; update = "u";
bulkMenu = "b"; bulkMenu = "b";
}; };
# Commit message panel
commitMessage = { commitMessage = {
commitMenu = "<c-o>"; commitMenu = "<c-o>";
}; };
}; };
# OS settings
os = { os = {
open = if pkgs.stdenv.isDarwin then "open {{filename}}" else "xdg-open {{filename}}"; open = if pkgs.stdenv.isDarwin then "open {{filename}}" else "xdg-open {{filename}}";
openLink = if pkgs.stdenv.isDarwin then "open {{link}}" else "xdg-open {{link}}"; openLink = if pkgs.stdenv.isDarwin then "open {{link}}" else "xdg-open {{link}}";
}; };
# Disable startup popup
disableStartupPopups = false; disableStartupPopups = false;
# Custom commands
customCommands = []; customCommands = [];
# Services
services = {}; services = {};
# Note to self
notARepository = "prompt"; notARepository = "prompt";
}; };
}; };