fix(vc): *vc-{diff,change-log}* popup rules

The former rules weren't proccing on these buffers. Also
changes *vc-diff* popups to resize based on contents.
This commit is contained in:
Henrik Lissner 2024-04-05 19:05:54 -04:00
parent ac33107228
commit 57f43e0953
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -28,10 +28,13 @@
"k" #'log-view-msg-prev))
(after! vc-annotate
(after! vc
(set-popup-rules!
'(("^\\*vc-diff" :select nil) ; *vc-diff*
("^\\*vc-change" :select t))) ; *vc-change-log*
'(("^\\*vc-diff" :select nil :size '+popup-shrink-to-fit)
("^\\*vc-change-log" :select t))))
(after! vc-annotate
(set-evil-initial-state! 'vc-annotate-mode 'normal)
;; Clean up after itself