feat(git): add git-delta

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2023-10-01 11:48:13 +02:00
parent d61dcf3c00
commit 5f99af32cf
Signed by: mfocko
GPG key ID: 7C47D46246790496
3 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,9 @@
---
# TODO: Resolve the issues with EL
- name: Install the required packages
ansible.builtin.package:
name:
- git
- git-delta
state: present
become: true

View file

@ -1,4 +1,8 @@
---
- name: Packages
ansible.builtin.include_tasks: install.yml
tags: install
- name: Create git config
ansible.builtin.template:
src: templates/gitconfig

View file

@ -8,6 +8,22 @@
[core]
editor = code --wait
excludesfile = /home/{{ target_user }}/.gitignore
pager = delta
[delta]
file-style = blue bold
# file-decoration-style = omit
hunk-header-style = omit
hunk-header-decoration-style = omit
# minus-emph-style = normal "#701011"
# plus-emph-style = syntax "#105010"
line-numbers = true
hyperlinks = true
# hyperlinks-file-link-format = "vscode://file/{path}:{line}"
# side-by-side = true
navigate = true
features = decorations
[diff]
tool = vscode-difftool