Make sure delta exists before acutally using it
This commit is contained in:
parent
9021efe3ac
commit
c768ee7ad2
|
@ -39,6 +39,7 @@
|
||||||
# oauthScopes = read_repository
|
# oauthScopes = read_repository
|
||||||
[core]
|
[core]
|
||||||
editor = vim
|
editor = vim
|
||||||
|
{{- if lookPath "delta" -}}
|
||||||
# delta will used as the default pager for git
|
# delta will used as the default pager for git
|
||||||
# and ov as the default pager for delta
|
# and ov as the default pager for delta
|
||||||
# the pager will be overloaded via the [pager] section for a few commands
|
# the pager will be overloaded via the [pager] section for a few commands
|
||||||
|
@ -53,6 +54,7 @@
|
||||||
# It allows to maintain a simpler config file and avoid escaping quotes
|
# It allows to maintain a simpler config file and avoid escaping quotes
|
||||||
diff = delta --features ov-diff
|
diff = delta --features ov-diff
|
||||||
log = delta --features ov-log
|
log = delta --features ov-log
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
[interactive]
|
[interactive]
|
||||||
diffFilter = delta --color-only
|
diffFilter = delta --color-only
|
||||||
|
|
|
@ -157,6 +157,7 @@ scriptTempDir={{ $scriptTempDir | quote }}
|
||||||
leader-key={{- $zellijLeaderKey | quote }}
|
leader-key={{- $zellijLeaderKey | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if lookPath "delta" }}
|
||||||
[diff]
|
[diff]
|
||||||
# command = "nvim"
|
# command = "nvim"
|
||||||
# args = ["-d", "{{ "{{ .Destination }}" }}", "{{ "{{ .Target }}" }}"]
|
# args = ["-d", "{{ "{{ .Destination }}" }}", "{{ "{{ .Target }}" }}"]
|
||||||
|
@ -164,5 +165,6 @@ scriptTempDir={{ $scriptTempDir | quote }}
|
||||||
command = "delta"
|
command = "delta"
|
||||||
args = ["--paging=never", "{{ "{{ .Destination }}" }}", "{{ "{{ .Target }}" }}"]
|
args = ["--paging=never", "{{ "{{ .Destination }}" }}", "{{ "{{ .Target }}" }}"]
|
||||||
pager = "moar"
|
pager = "moar"
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
# vim: set ft=toml expandtab tabstop=2 shiftwidth=2:
|
# vim: set ft=toml expandtab tabstop=2 shiftwidth=2:
|
||||||
|
|
Loading…
Reference in New Issue