diff options
Diffstat (limited to 'files/.config/lazygit/config.yml')
| -rw-r--r-- | files/.config/lazygit/config.yml | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/files/.config/lazygit/config.yml b/files/.config/lazygit/config.yml index 48f6314..9c4b494 100644 --- a/files/.config/lazygit/config.yml +++ b/files/.config/lazygit/config.yml @@ -10,14 +10,36 @@ git: paging: colorArg: always pager: diff-so-fancy + externalDiffCommand: difft --color=always --background=light commitPrefixes: gazprom: pattern: "^(\\d+)-.*" replace: "feat: #$1 " - branchLogCmd: "git lg --color=always --no-merges --graph {{branchName}} --" + # branchLogCmd: "git lg --color=always --no-merges --graph {{branchName}} --" services: 'git.technocom.tech': 'gitea:git.technocom.tech' keybinding: commits: moveDownCommit: '<c-n>' moveUpCommit: '<c-p>' +customCommands: + - key: '<c-d>' + description: 'Show Difftastic for current commit' + context: 'subCommits' + command: 'git dshow "{{.SelectedLocalCommit.Sha}}"' + subprocess: true + - key: '<c-d>' + description: 'Show difft of current commit' + context: 'files' + command: 'git dft -- {{.SelectedFile.Name | quote}}' + subprocess: true + - key: '<c-d>' + description: 'Show difft of current commit' + context: 'commitFiles' + command: 'git dshow "{{.SelectedLocalCommit.Sha}}" -- {{.SelectedCommitFile.Name | quote}}' + subprocess: true + - key: '<c-d>' + description: 'Show difft of current commit' + context: 'commits' + command: 'git dshow "{{.SelectedLocalCommit.Sha}}"' + subprocess: true |
