1
0
Fork 0
dotfiles/common/.config/lazygit/config.yml

129 lines
4.2 KiB
YAML
Raw Normal View History

2024-02-22 11:28:24 +01:00
services:
2024-04-24 21:18:52 +02:00
gitlab.tralios.de: "gitlab:gitlab.tralios.de"
2024-10-16 11:13:02 +02:00
gitlab.schneiderfilz.com: "gitlab:gitlab.schneiderfilz.com"
2024-04-24 21:18:52 +02:00
git.snaile.de: "gitea:git.snaile.de"
2024-06-26 14:38:23 +02:00
git:
branchLogCmd: "git log --color=always --abbrev-commit --date=relative --pretty='format:%C(magenta)%G? %C(blue)%<(33)%ae%C(green)%<(24)%ad%C(reset)%s%C(auto)%d' {{branchName}} --"
2024-06-26 14:38:23 +02:00
paging:
colorArg: always
2024-11-19 10:27:16 +01:00
pager: "delta --hyperlinks --hyperlinks-file-link-format='lazygit-edit://{path}:{line}' --paging=never --config ${XDG_CONFIG_HOME}/git/config --max-line-length=$(({{columnWidth}} * 2))"
2023-12-11 16:42:07 +01:00
gui:
2024-02-22 11:28:24 +01:00
nerdFontsVersion: "3"
showRandomTip: false
showBottomLine: false
2024-03-28 17:13:34 +01:00
skipDiscardChangeWarning: true
2024-02-22 11:28:24 +01:00
border: single
2024-06-26 14:38:23 +02:00
sidePanelWidth: 0.25
theme:
activeBorderColor:
- "#ff9e64"
- "bold"
inactiveBorderColor:
- "#27a1b9"
searchingActiveBorderColor:
- "#ff9e64"
- "bold"
optionsTextColor:
- "#7aa2f7"
selectedLineBgColor:
- "#283457"
cherryPickedCommitFgColor:
- "#7aa2f7"
cherryPickedCommitBgColor:
- "#bb9af7"
markedBaseCommitFgColor:
- "#7aa2f7"
markedBaseCommitBgColor:
- "#e0af68"
unstagedChangesColor:
- "#db4b4b"
defaultFgColor:
- "#c0caf5"
2024-01-26 18:18:57 +01:00
update:
2024-02-22 11:28:24 +01:00
days: 1
2024-01-26 18:18:57 +01:00
refresher:
2024-02-22 11:28:24 +01:00
refreshInterval: 5
fetchInterval: 30
2024-01-26 18:18:57 +01:00
disableStartupPopups: true
2024-06-12 10:27:14 +02:00
keybinding:
universal:
openDiffTool: <disabled>
2024-01-26 18:18:57 +01:00
customCommands:
- key: b
2024-02-21 14:44:05 +01:00
command: "git branch --merged main | grep -v '^[ *]*main$' | xargs -r git branch -d; git branch --merged master | grep -v '^[ *]*master$' | xargs -r git branch -d"
2024-01-26 18:18:57 +01:00
context: "localBranches"
loadingText: "Pruning..."
2024-02-21 14:44:05 +01:00
description: "prune local branches that have been merged to main/master"
2024-05-23 16:21:12 +02:00
- key: "<c-t>"
context: "global"
2024-10-09 15:21:39 +02:00
command: |
major=$(date +%Y)
minor=$(date +%m | sed 's/^0//')
patch=$(($(git tag --sort=-v:refname | grep ^$major\.$minor | head -n 1 | cut -d . -f 3) + 1))
tag="${major}.${minor}.${patch}"
git tag -m '' "$tag"
git push {{ .SelectedRemote.Name }} "$tag"
2024-05-23 16:21:12 +02:00
description: "Create and push a tag based off the date"
loadingText: "Tagging/Pushing..."
2024-01-26 18:18:57 +01:00
- key: "<c-v>"
context: "global"
description: "Create new conventional commit"
prompts:
- type: "menu"
key: "Type"
title: "Type of change"
options:
- name: "build"
description: "Changes that affect the build system or external dependencies"
value: "build"
- name: "feat"
description: "A new feature"
value: "feat"
- name: "fix"
description: "A bug fix"
value: "fix"
- name: "chore"
description: "Other changes that don't modify src or test files"
value: "chore"
- name: "ci"
description: "Changes to CI configuration files and scripts"
value: "ci"
- name: "docs"
description: "Documentation only changes"
value: "docs"
- name: "perf"
description: "A code change that improves performance"
value: "perf"
- name: "refactor"
description: "A code change that neither fixes a bug nor adds a feature"
value: "refactor"
- name: "revert"
description: "Reverts a previous commit"
value: "revert"
- name: "style"
description: "Changes that do not affect the meaning of the code"
value: "style"
- name: "test"
description: "Adding missing tests or correcting existing tests"
value: "test"
- type: "input"
title: "Scope - Add '(<scope>)'"
key: "Scope"
initialValue: ""
- type: "input"
title: "Breaking change - Add '!'"
key: "Breaking"
initialValue: ""
- type: "input"
title: "message"
key: "Message"
initialValue: ""
- type: "confirm"
key: "Confirm"
title: "Commit"
body: "Are you sure you want to commit?"
command: "git commit --message '{{.Form.Type}}{{.Form.Scope}}{{.Form.Breaking}}: {{.Form.Message}}'"
loadingText: "Creating conventional commit..."
notARepository: skip
promptToReturnFromSubprocess: true