Skip to content

Commit

Permalink
tweak delta config (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
kucera-lukas committed May 13, 2023
1 parent 553e6ad commit 6a1dc14
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions home/dot_config/git/config.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
[core]
editor = nano
excludesfile = ~/.config/git/ignore
pager = delta
pager = delta --features="$(case $(echo $(gsettings get org.gnome.desktop.interface gtk-theme) | tr '[:upper:]' '[:lower:]') in *dark*) echo dark-mode ;; *) echo light-mode ;; esac)"
commitGraph = true

[init]
Expand All @@ -221,7 +221,7 @@

[interactive]
singlekey = true
diffFilter = delta --color-only
diffFilter = delta --color-only --features="interactive $(case $(echo $(gsettings get org.gnome.desktop.interface gtk-theme) | tr '[:upper:]' '[:lower:]')" in *dark*) echo dark-mode ;; *) echo light-mode ;; esac)"

[log]
abbrevCommit = true
Expand Down Expand Up @@ -282,7 +282,7 @@
renames = copies

[diff]
colorMoved = true
colorMoved = default
renames = copies
mnemonicprefix = true

Expand Down Expand Up @@ -344,5 +344,19 @@
strict = true

[delta]
features = decorations
hyperlinks = true
hyperlinks-file-link-format = "vscode://file/{path}:{line}"
line-numbers = true
navigate = true
side-by-side = true
true-color = always

[delta "interactive"]
keep-plus-minus-markers = false

[delta "light-mode"]
light = true

[delta "dark-mode"]
dark = true

0 comments on commit 6a1dc14

Please sign in to comment.