Improve indent-bars config
This commit is contained in:
parent
82dce2ac5d
commit
5593220049
@ -670,13 +670,23 @@
|
||||
:vc (:fetcher github :repo jdtsmith/indent-bars)
|
||||
:custom
|
||||
(indent-bars-treesit-support t)
|
||||
(indent-bars-no-descend-string t)
|
||||
(indent-bars-treesit-ignore-blank-lines-types '("module"))
|
||||
(indent-bars-treesit-wrap '((python argument_list parameters ; for python, as an example
|
||||
list list_comprehension
|
||||
dictionary dictionary_comprehension
|
||||
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
|
||||
:delight
|
||||
|
Loading…
Reference in New Issue
Block a user