Improve indent-bars config

This commit is contained in:
Adam Goldsmith 2024-08-14 23:01:13 -04:00
parent 82dce2ac5d
commit 5593220049

View File

@ -670,13 +670,23 @@
:vc (:fetcher github :repo jdtsmith/indent-bars) :vc (:fetcher github :repo jdtsmith/indent-bars)
:custom :custom
(indent-bars-treesit-support t) (indent-bars-treesit-support t)
(indent-bars-no-descend-string t)
(indent-bars-treesit-ignore-blank-lines-types '("module")) (indent-bars-treesit-ignore-blank-lines-types '("module"))
(indent-bars-treesit-wrap '((python argument_list parameters ; for python, as an example (indent-bars-treesit-wrap '((python argument_list parameters ; for python, as an example
list list_comprehension list list_comprehension
dictionary dictionary_comprehension dictionary dictionary_comprehension
parenthesized_expression subscript))) parenthesized_expression subscript)))
:hook ((python-base-mode yaml-base yaml-ts-mode) . indent-bars-mode)) (indent-bars-color '(highlight :face-bg t :blend 0.15))
(indent-bars-pattern ".")
(indent-bars-width-frac 0.2)
(indent-bars-highlight-current-depth '(:blend 0.5))
:hook ((python-base-mode yaml-base yaml-ts-mode) . indent-bars-mode)
:config
(advice-add
'indent-bars--guess-spacing :around
(lambda (oldfun)
(if (and (derived-mode-p 'python-base-mode) (boundp 'python-indent-offset))
python-indent-offset
(oldfun)))))
(use-package editorconfig :ensure t :demand (use-package editorconfig :ensure t :demand
:delight :delight