Reset indent-bars when switching theme

This commit is contained in:
Andrea Ciceri 2023-12-27 01:42:27 +01:00
parent 75774f805a
commit 9e9b01ff4e
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg

View file

@ -140,6 +140,7 @@
(dired-mode . nerd-icons-dired-mode)) (dired-mode . nerd-icons-dired-mode))
(use-package indent-bars (use-package indent-bars
:after consult
:custom :custom
(indent-bars-treesit-support t) (indent-bars-treesit-support t)
(indent-bars-spacing-override 2) (indent-bars-spacing-override 2)
@ -147,7 +148,8 @@
(indent-bars-color-by-depth '(:regexp "outline-\\([0-9]+\\)" :blend 0.4)) (indent-bars-color-by-depth '(:regexp "outline-\\([0-9]+\\)" :blend 0.4))
(indent-bars-no-stipple-char (string-to-char "")) (indent-bars-no-stipple-char (string-to-char ""))
(indent-bars-prefer-character 't) ;; so it works also in terminal (indent-bars-prefer-character 't) ;; so it works also in terminal
) :config
(advice-add 'consult-theme :after #'(lambda (&rest r) (with-eval-after-load 'indent-bars (indent-bars-reset)))))
(use-package diredfl (use-package diredfl
:config (diredfl-global-mode)) :config (diredfl-global-mode))