Dotfiles/site-modules/core/templates/gitconfig.liquid
Ade Attwood 0e90eac407 fix(git): navigation in diffs
When using delta diff, you could not navigate the hunks of the diff. It
would only jump between file changes. This was due to the use of the raw
hunk header. It must not be included in the default `navigate-regex`.

I have updated the regex so it includes the default hunk patter so now
when you have in a diff and press `n` it will navigate the hunks as well
as the file changes.
2024-06-14 18:09:56 +01:00

42 lines
714 B
Text

#
# !! DO NOT EDIT !!
# !! This file is managed by configz !!
#
[user]
name = {{ data.user_name }}
email = {{ data.email }}
[core]
editor = nvim
autocrlf = input
[merge]
conflictstyle = diff3
[rerere]
enabled = true
[push]
default = current
[pager]
diff = delta
log = delta
reflog = delta
show = delta
[interactive]
diffFilter = delta --color-only
[delta]
line-numbers = true
navigate = true
navigate-regex = "^(modified|added:|removed:|renamed:|Δ|@@\\s)"
hunk-header-style = raw
hunk-header-decoration-style = ul
file-modified-label = "modified:"
file-removed-label = "removed:"
file-added-label = "added:"
file-renamed-label = "renamed:"