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