feat(git): add git-delta
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
d61dcf3c00
commit
5f99af32cf
3 changed files with 29 additions and 0 deletions
9
roles/user/git/tasks/install.yml
Normal file
9
roles/user/git/tasks/install.yml
Normal 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
|
|
@ -1,4 +1,8 @@
|
|||
---
|
||||
- name: Packages
|
||||
ansible.builtin.include_tasks: install.yml
|
||||
tags: install
|
||||
|
||||
- name: Create git config
|
||||
ansible.builtin.template:
|
||||
src: templates/gitconfig
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue