You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# The number of spaces per tab; used for everything that's shown in the main view, but probably mostly relevant for diffs.
68
-
# Note that when using a pager, the pager has its own tab width setting, so you need to pass it separately in the pager command.
67
+
# The number of spaces per tab; used for everything that's shown in the main
68
+
# view, but probably mostly relevant for diffs.
69
+
# Note that when using a pager, the pager has its own tab width setting, so you
70
+
# need to pass it separately in the pager command.
69
71
tabWidth: 4
70
72
71
73
# If true, capture mouse events.
72
-
# When mouse events are captured, it's a little harder to select text: e.g. requiring you to hold the option key when on macOS.
74
+
# When mouse events are captured, it's a little harder to select text: e.g.
75
+
# requiring you to hold the option key when on macOS.
73
76
mouseEvents: true
74
77
75
78
# If true, do not show a warning when amending a commit.
@@ -81,42 +84,57 @@ gui:
81
84
# If true, do not show warning when applying/popping the stash
82
85
skipStashWarning: false
83
86
84
-
# If true, do not show a warning when attempting to commit without any staged files; instead stage all unstaged files.
87
+
# If true, do not show a warning when attempting to commit without any staged
88
+
# files; instead stage all unstaged files.
85
89
skipNoStagedFilesWarning: false
86
90
87
91
# If true, do not show a warning when rewording a commit via an external editor
88
92
skipRewordInEditorWarning: false
89
93
90
-
# Fraction of the total screen width to use for the left side section. You may want to pick a small number (e.g. 0.2) if you're using a narrow screen, so that you can see more of the main section.
94
+
# Fraction of the total screen width to use for the left side section. You may
95
+
# want to pick a small number (e.g. 0.2) if you're using a narrow screen, so
96
+
# that you can see more of the main section.
91
97
# Number from 0 to 1.0.
92
98
sidePanelWidth: 0.3333
93
99
94
-
# If true, increase the height of the focused side window; creating an accordion effect.
100
+
# If true, increase the height of the focused side window; creating an accordion
101
+
# effect.
95
102
expandFocusedSidePanel: false
96
103
97
-
# The weight of the expanded side panel, relative to the other panels. 2 means twice as tall as the other panels. Only relevant if `expandFocusedSidePanel` is true.
104
+
# The weight of the expanded side panel, relative to the other panels. 2 means
105
+
# twice as tall as the other panels. Only relevant if `expandFocusedSidePanel`
106
+
# is true.
98
107
expandedSidePanelWeight: 2
99
108
100
-
# Sometimes the main window is split in two (e.g. when the selected file has both staged and unstaged changes). This setting controls how the two sections are split.
109
+
# Sometimes the main window is split in two (e.g. when the selected file has
110
+
# both staged and unstaged changes). This setting controls how the two sections
111
+
# are split.
101
112
# Options are:
102
113
# - 'horizontal': split the window horizontally
103
114
# - 'vertical': split the window vertically
104
-
# - 'flexible': (default) split the window horizontally if the window is wide enough, otherwise split vertically
115
+
# - 'flexible': (default) split the window horizontally if the window is wide
116
+
# enough, otherwise split vertically
105
117
mainPanelSplitMode: flexible
106
118
107
-
# How the window is split when in half screen mode (i.e. after hitting '+' once).
119
+
# How the window is split when in half screen mode (i.e. after hitting '+'
120
+
# once).
108
121
# Possible values:
109
-
# - 'left': split the window horizontally (side panel on the left, main view on the right)
122
+
# - 'left': split the window horizontally (side panel on the left, main view on
123
+
# the right)
110
124
# - 'top': split the window vertically (side panel on top, main view below)
111
125
enlargedSideViewLocation: left
112
126
113
-
# If true, wrap lines in the staging view to the width of the view. This makes it much easier to work with diffs that have long lines, e.g. paragraphs of markdown text.
127
+
# If true, wrap lines in the staging view to the width of the view. This makes
128
+
# it much easier to work with diffs that have long lines, e.g. paragraphs of
129
+
# markdown text.
114
130
wrapLinesInStagingView: true
115
131
116
-
# If true, hunk selection mode will be enabled by default when entering the staging view.
132
+
# If true, hunk selection mode will be enabled by default when entering the
# One of 'auto' (default) | 'en' | 'zh-CN' | 'zh-TW' | 'pl' | 'nl' | 'ja' | 'ko'
137
+
# | 'ru' | 'pt'
120
138
language: auto
121
139
122
140
# Format used when displaying time e.g. commit time.
@@ -189,11 +207,15 @@ gui:
189
207
# If true, show the '5 of 20' footer at the bottom of list views
190
208
showListFooter: true
191
209
192
-
# If true, display the files in the file views as a tree. If false, display the files as a flat list.
193
-
# This can be toggled from within Lazygit with the '`' key, but that will not change the default.
210
+
# If true, display the files in the file views as a tree. If false, display the
211
+
# files as a flat list.
212
+
# This can be toggled from within Lazygit with the '`' key, but that will not
213
+
# change the default.
194
214
showFileTree: true
195
215
196
-
# If true, add a "/" root item in the file tree representing the root of the repository. It is only added when necessary, i.e. when there is more than one item at top level.
216
+
# If true, add a "/" root item in the file tree representing the root of the
217
+
# repository. It is only added when necessary, i.e. when there is more than one
218
+
# item at top level.
197
219
showRootItemInFileTree: true
198
220
199
221
# If true, show the number of lines changed per file in the Files view
@@ -205,7 +227,9 @@ gui:
205
227
# If true, show the command log
206
228
showCommandLog: true
207
229
208
-
# If true, show the bottom line that contains keybinding info and useful buttons. If false, this line will be hidden except to display a loader for an in-progress action.
230
+
# If true, show the bottom line that contains keybinding info and useful
231
+
# buttons. If false, this line will be hidden except to display a loader for an
232
+
# in-progress action.
209
233
showBottomLine: true
210
234
211
235
# If true, show jump-to-window keybindings in window titles.
@@ -216,10 +240,12 @@ gui:
216
240
# If empty, do not show icons.
217
241
nerdFontsVersion: ""
218
242
219
-
# If true (default), file icons are shown in the file views. Only relevant if NerdFontsVersion is not empty.
243
+
# If true (default), file icons are shown in the file views. Only relevant if
244
+
# NerdFontsVersion is not empty.
220
245
showFileIcons: true
221
246
222
-
# Length of author name in (non-expanded) commits view. 2 means show initials only.
247
+
# Length of author name in (non-expanded) commits view. 2 means show initials
248
+
# only.
223
249
commitAuthorShortLength: 2
224
250
225
251
# Length of author name in expanded commits view. 2 means show initials only.
@@ -240,18 +266,21 @@ gui:
240
266
241
267
# Whether to split the main window when viewing file changes.
242
268
# One of: 'auto' | 'always'
243
-
# If 'auto', only split the main window when a file has both staged and unstaged changes
269
+
# If 'auto', only split the main window when a file has both staged and unstaged
270
+
# changes
244
271
splitDiff: auto
245
272
246
-
# Default size for focused window. Can be changed from within Lazygit with '+' and '_' (but this won't change the default).
273
+
# Default size for focused window. Can be changed from within Lazygit with '+'
274
+
# and '_' (but this won't change the default).
247
275
# One of: 'normal' (default) | 'half' | 'full'
248
276
screenMode: normal
249
277
250
278
# Window border style.
251
279
# One of 'rounded' (default) | 'single' | 'double' | 'hidden' | 'bold'
252
280
border: rounded
253
281
254
-
# If true, show a seriously epic explosion animation when nuking the working tree.
282
+
# If true, show a seriously epic explosion animation when nuking the working
283
+
# tree.
255
284
animateExplosion: true
256
285
257
286
# Whether to stack UI components on top of each other.
@@ -284,14 +313,16 @@ gui:
284
313
# If true, jump to the Files panel after applying a stash
285
314
switchToFilesAfterStashApply: true
286
315
287
-
# If true, when using the panel jump keys (default 1 through 5) and target panel is already active, go to next tab instead
316
+
# If true, when using the panel jump keys (default 1 through 5) and target panel
317
+
# is already active, go to next tab instead
288
318
switchTabsWithPanelJumpKeys: false
289
319
290
320
# Config relating to git
291
321
git:
292
322
# See https://github.com/jesseduffield/lazygit/blob/master/docs/Custom_Pagers.md
293
323
paging:
294
-
# Value of the --color arg in the git diff command. Some pagers want this to be set to 'always' and some want it set to 'never'
324
+
# Value of the --color arg in the git diff command. Some pagers want this to be
325
+
# set to 'always' and some want it set to 'never'
295
326
colorArg: always
296
327
297
328
# e.g.
@@ -303,7 +334,10 @@ git:
303
334
# e.g. 'difft --color=always'
304
335
externalDiffCommand: ""
305
336
306
-
# If true, Lazygit will use git's `diff.external` config for paging. The advantage over `externalDiffCommand` is that this can be configured per file type in .gitattributes; see https://git-scm.com/docs/gitattributes#_defining_an_external_diff_driver.
337
+
# If true, Lazygit will use git's `diff.external` config for paging. The
338
+
# advantage over `externalDiffCommand` is that this can be configured per file
# If true, run merges in a subprocess so that if a commit message is required, Lazygit will not hang
356
+
# If true, run merges in a subprocess so that if a commit message is required,
357
+
# Lazygit will not hang
323
358
# Only applicable to unix users.
324
359
manualCommit: false
325
360
326
361
# Extra args passed to `git merge`, e.g. --no-ff
327
362
args: ""
328
363
329
-
# The commit message to use for a squash merge commit. Can contain "{{selectedRef}}" and "{{currentBranch}}" placeholders.
364
+
# The commit message to use for a squash merge commit. Can contain
365
+
# "{{selectedRef}}" and "{{currentBranch}}" placeholders.
330
366
squashMergeMessage: Squash merge {{selectedRef}} into {{currentBranch}}
331
367
332
-
# list of branches that are considered 'main' branches, used when displaying commits
368
+
# list of branches that are considered 'main' branches, used when displaying
369
+
# commits
333
370
mainBranches:
334
371
- master
335
372
- main
336
373
337
-
# Prefix to use when skipping hooks. E.g. if set to 'WIP', then pre-commit hooks will be skipped when the commit message starts with 'WIP'
374
+
# Prefix to use when skipping hooks. E.g. if set to 'WIP', then pre-commit hooks
375
+
# will be skipped when the commit message starts with 'WIP'
338
376
skipHookPrefix: WIP
339
377
340
378
# If true, periodically fetch from remote
@@ -343,30 +381,40 @@ git:
343
381
# If true, periodically refresh files and submodules
344
382
autoRefresh: true
345
383
346
-
# If not "none", lazygit will automatically fast-forward local branches to match their upstream after fetching. Applies to branches that are not the currently checked out branch, and only to those that are strictly behind their upstream (as opposed to diverged).
384
+
# If not "none", lazygit will automatically fast-forward local branches to match
385
+
# their upstream after fetching. Applies to branches that are not the currently
386
+
# checked out branch, and only to those that are strictly behind their upstream
387
+
# (as opposed to diverged).
347
388
# Possible values: 'none' | 'onlyMainBranches' | 'allBranches'
348
389
autoForwardBranches: onlyMainBranches
349
390
350
391
# If true, pass the --all arg to git fetch
351
392
fetchAll: true
352
393
353
-
# If true, lazygit will automatically stage files that used to have merge conflicts but no longer do; and it will also ask you if you want to continue a merge or rebase if you've resolved all conflicts. If false, it won't do either of these things.
394
+
# If true, lazygit will automatically stage files that used to have merge
395
+
# conflicts but no longer do; and it will also ask you if you want to continue a
396
+
# merge or rebase if you've resolved all conflicts. If false, it won't do either
397
+
# of these things.
354
398
autoStageResolvedConflicts: true
355
399
356
400
# Command used when displaying the current branch git log in the main window
# If true, git diffs are rendered with the `--ignore-all-space` flag, which ignores whitespace changes. Can be toggled from within Lazygit with `<c-w>`.
408
+
# If true, git diffs are rendered with the `--ignore-all-space` flag, which
409
+
# ignores whitespace changes. Can be toggled from within Lazygit with `<c-w>`.
364
410
ignoreWhitespaceInDiffView: false
365
411
366
-
# The number of lines of context to show around each diff hunk. Can be changed from within Lazygit with the `{` and `}` keys.
412
+
# The number of lines of context to show around each diff hunk. Can be changed
413
+
# from within Lazygit with the `{` and `}` keys.
367
414
diffContextSize: 3
368
415
369
-
# The threshold for considering a file to be renamed, in percent. Can be changed from within Lazygit with the `(` and `)` keys.
416
+
# The threshold for considering a file to be renamed, in percent. Can be changed
417
+
# from within Lazygit with the `(` and `)` keys.
370
418
renameSimilarityThreshold: 50
371
419
372
420
# If true, do not spawn a separate process when using GPG
@@ -391,31 +439,38 @@ git:
391
439
# Config for showing the log in the commits view
392
440
log:
393
441
# One of: 'date-order' | 'author-date-order' | 'topo-order' | 'default'
394
-
# 'topo-order' makes it easier to read the git log graph, but commits may not appear chronologically. See https://git-scm.com/docs/
442
+
# 'topo-order' makes it easier to read the git log graph, but commits may not
443
+
# appear chronologically. See https://git-scm.com/docs/
395
444
#
396
-
# Can be changed from within Lazygit with `Log menu -> Commit sort order` (`<c-l>` in the commits window by default).
445
+
# Can be changed from within Lazygit with `Log menu -> Commit sort order`
446
+
# (`<c-l>` in the commits window by default).
397
447
order: topo-order
398
448
399
449
# This determines whether the git graph is rendered in the commits panel
400
450
# One of 'always' | 'never' | 'when-maximised'
401
451
#
402
-
# Can be toggled from within lazygit with `Log menu -> Show git graph` (`<c-l>` in the commits window by default).
452
+
# Can be toggled from within lazygit with `Log menu -> Show git graph` (`<c-l>`
453
+
# in the commits window by default).
403
454
showGraph: always
404
455
405
-
# displays the whole git graph by default in the commits view (equivalent to passing the `--all` argument to `git log`)
456
+
# displays the whole git graph by default in the commits view (equivalent to
457
+
# passing the `--all` argument to `git log`)
406
458
showWholeGraph: false
407
459
408
460
# How branches are sorted in the local branches view.
409
461
# One of: 'date' (default) | 'recency' | 'alphabetical'
410
-
# Can be changed from within Lazygit with the Sort Order menu (`s`) in the branches panel.
462
+
# Can be changed from within Lazygit with the Sort Order menu (`s`) in the
463
+
# branches panel.
411
464
localBranchSortOrder: date
412
465
413
466
# How branches are sorted in the remote branches view.
414
467
# One of: 'date' (default) | 'alphabetical'
415
-
# Can be changed from within Lazygit with the Sort Order menu (`s`) in the remote branches panel.
468
+
# Can be changed from within Lazygit with the Sort Order menu (`s`) in the
469
+
# remote branches panel.
416
470
remoteBranchSortOrder: date
417
471
418
-
# When copying commit hashes to the clipboard, truncate them to this length. Set to 40 to disable truncation.
472
+
# When copying commit hashes to the clipboard, truncate them to this length. Set
473
+
# to 40 to disable truncation.
419
474
truncateCopiedCommitHashesTo: 12
420
475
421
476
# Periodic update checks
@@ -439,18 +494,22 @@ refresher:
439
494
# If true, show a confirmation popup before quitting Lazygit
440
495
confirmOnQuit: false
441
496
442
-
# If true, exit Lazygit when the user presses escape in a context where there is nothing to cancel/close
497
+
# If true, exit Lazygit when the user presses escape in a context where there is
498
+
# nothing to cancel/close
443
499
quitOnTopLevelReturn: false
444
500
445
-
# Config relating to things outside of Lazygit like how files are opened, copying to clipboard, etc
501
+
# Config relating to things outside of Lazygit like how files are opened,
502
+
# copying to clipboard, etc
446
503
os:
447
504
# Command for editing a file. Should contain "{{filename}}".
448
505
edit: ""
449
506
450
-
# Command for editing a file at a given line number. Should contain "{{filename}}", and may optionally contain "{{line}}".
507
+
# Command for editing a file at a given line number. Should contain
508
+
# "{{filename}}", and may optionally contain "{{line}}".
451
509
editAtLine: ""
452
510
453
-
# Same as EditAtLine, except that the command needs to wait until the window is closed.
511
+
# Same as EditAtLine, except that the command needs to wait until the window is
512
+
# closed.
454
513
editAtLineAndWait: ""
455
514
456
515
# Whether lazygit suspends until an edit process returns
@@ -459,10 +518,12 @@ os:
459
518
# For opening a directory in an editor
460
519
openDirInEditor: ""
461
520
462
-
# A built-in preset that sets all of the above settings. Supported presets are defined in the getPreset function in editor_presets.go.
521
+
# A built-in preset that sets all of the above settings. Supported presets are
522
+
# defined in the getPreset function in editor_presets.go.
463
523
editPreset: ""
464
524
465
-
# Command for opening a file, as if the file is double-clicked. Should contain "{{filename}}", but doesn't support "{{line}}".
525
+
# Command for opening a file, as if the file is double-clicked. Should contain
526
+
# "{{filename}}", but doesn't support "{{line}}".
466
527
open: ""
467
528
468
529
# Command for opening a link. Should contain "{{link}}".
@@ -476,7 +537,9 @@ os:
476
537
# See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#custom-command-for-copying-to-and-pasting-from-clipboard
477
538
readFromClipboardCmd: ""
478
539
479
-
# A shell startup file containing shell aliases or shell functions. This will be sourced before running any shell commands, so that shell functions are available in the `:` command prompt or even in custom commands.
540
+
# A shell startup file containing shell aliases or shell functions. This will be
541
+
# sourced before running any shell commands, so that shell functions are
542
+
# available in the `:` command prompt or even in custom commands.
480
543
# See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#using-aliases-or-functions-in-shell-commands
481
544
shellFunctionsFile: ""
482
545
@@ -491,13 +554,15 @@ customCommands: []
491
554
services: {}
492
555
493
556
# What to do when opening Lazygit outside of a git repo.
494
-
# - 'prompt': (default) ask whether to initialize a new repo or open in the most recent repo
557
+
# - 'prompt': (default) ask whether to initialize a new repo or open in the most
558
+
# recent repo
495
559
# - 'create': initialize a new repo
496
560
# - 'skip': open most recent repo
497
561
# - 'quit': exit Lazygit
498
562
notARepository: prompt
499
563
500
-
# If true, display a confirmation when subprocess terminates. This allows you to view the output of the subprocess before returning to Lazygit.
564
+
# If true, display a confirmation when subprocess terminates. This allows you to
565
+
# view the output of the subprocess before returning to Lazygit.
0 commit comments