summaryrefslogtreecommitdiff
path: root/modules/vc-config.el
diff options
context:
space:
mode:
Diffstat (limited to 'modules/vc-config.el')
-rw-r--r--modules/vc-config.el16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/vc-config.el b/modules/vc-config.el
index 21a4380c..141f6e17 100644
--- a/modules/vc-config.el
+++ b/modules/vc-config.el
@@ -123,6 +123,22 @@ interactive selection to jump to any changed line in the buffer."
(require 'git-gutter)
(consult-line "^[+\\-]"))
+;; -------------------------------- Difftastic ---------------------------------
+;; Structural diffs for better git change visualization
+;; Requires: difft binary (installed via pacman -S difftastic)
+
+(use-package difftastic
+ :defer t
+ :commands (difftastic-magit-diff difftastic-magit-show)
+ :bind (:map magit-blame-read-only-mode-map
+ ("D" . difftastic-magit-show)
+ ("S" . difftastic-magit-show))
+ :config
+ (eval-after-load 'magit-diff
+ '(transient-append-suffix 'magit-diff '(-1 -1)
+ [("D" "Difftastic diff (dwim)" difftastic-magit-diff)
+ ("S" "Difftastic show" difftastic-magit-show)])))
+
;; --------------------------------- VC Keymap ---------------------------------
;; Ordering & sorting prefix and keymap