fix(indent-guides): interop with magit-blame

Ref: af814ff86a
Ref: #8052
This commit is contained in:
Henrik Lissner 2024-09-09 00:35:29 -04:00
parent af814ff86a
commit bcdb945465
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -62,6 +62,12 @@ be enabled. If any function returns non-nil, the mode will not be activated."
(defun +indent-guides-in-childframe-p ()
(frame-parameter nil 'parent-frame)))
;; HACK: `indent-bars-mode' interactions with some packages poorly. This
;; section is dedicated to package interop fixes.
(when (modulep! :tools magit)
(after! magit-blame
(add-to-list 'magit-blame-disable-modes 'indent-bars-mode)))
(when (modulep! :tools lsp)
;; HACK: lsp-ui-peek uses overlays, and indent-bars doesn't know how to deal
;; with all the whitespace it uses to format its popups, spamming it with