fix(tabs): reload centaur-tabs when changing themes

Fix: #6503
This commit is contained in:
Henrik Lissner 2024-06-20 17:54:29 -04:00
parent fddc912f81
commit ea1f72e875
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -35,6 +35,12 @@
(when (centaur-tabs-mode-on-p)
(centaur-tabs-local-mode))))
(add-hook! 'doom-load-theme-hook
(defun +tabs-reload-centaur-tabs-h ()
(when (bound-and-true-p centaur-tabs-mode)
(centaur-tabs-mode -1)
(centaur-tabs-mode +1))))
;; HACK: `centaur-tabs-buffer-update-groups' is both expensive and called too
;; frequently. There really is no reason to call it more than 10 times per
;; second, as buffers rarely change groups more frequently than that.