Skip to content

Commit

Permalink
git: add difftastic as git difftool
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborpilz committed Mar 22, 2024
1 parent e33caee commit d8c8dc1
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
4 changes: 4 additions & 0 deletions home/config/doom/config.org
Original file line number Diff line number Diff line change
Expand Up @@ -1130,6 +1130,10 @@ Add some keybindings und ~SPC g~ (Git)
:desc "List all owned projects" "g l o" #'lab-list-all-owned-projects)
#+end_src

**** Delta as Git Diff
#+begin_src elisp :tangle packages.el
(package! diff-ansi)
#+end_src
*** Documentation
**** Devdocs
Devdocs (https://elpa.gnu.org/packages/devdocs.html) is a package for viewing
Expand Down
5 changes: 2 additions & 3 deletions home/config/doom/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
(dired +icons) ; making dired pretty [functional]
electric ; smarter, keyword-based electric-indent
(ibuffer +icons) ; interactive buffer management
tramp
undo ; persistent, smarter undo for your inevitable mistakes
vc ; version-control and Emacs, sitting in a tree

Expand Down Expand Up @@ -116,8 +115,8 @@
;;upload ; map local to remote projects via ssh/ftp

:os
(macos) ; improve compatibility with macOS
(tty +osc) ; improve the terminal Emacs experience
(macos) ; improve compatibility with macOS
(tty +osc) ; improve the terminal Emacs experience

:lang
;;agda ; types of types of types of types...
Expand Down
2 changes: 2 additions & 0 deletions home/config/doom/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@

(package! lab)

(package! diff-ansi)

(package! devdocs)

(package! gptel)
Expand Down
9 changes: 9 additions & 0 deletions home/config/git/config
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@
required = true
[core]
editor = vim
[diff]
tool = difftastic
external = difft
[difftool]
prompt = false
[difftool "difftastic"]
cmd = difft "$LOCAL" "$REMOTE"
[pager]
difftool = true
[merge]
tool = diffconflicts
[mergetool]
Expand Down
1 change: 1 addition & 0 deletions home/modules/shell/git.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ in
gitAndTools.git-open
gitAndTools.diff-so-fancy
gitAndTools.git-crypt
difftastic
act
];

Expand Down

0 comments on commit d8c8dc1

Please sign in to comment.