-
Notifications
You must be signed in to change notification settings - Fork 0
/
init-indent-bars.el
25 lines (22 loc) · 1016 Bytes
/
init-indent-bars.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
;; -*- coding: utf-8; -*-
(use-package indent-bars
:straight (indent-bars :type git :host github :repo "jdtsmith/indent-bars")
:hook ((python-mode yaml-mode) . indent-bars-mode)
:config
(require 'indent-bars-ts) ; not needed with straight
(setq indent-bars-width-frac 0.2)
:custom
(indent-bars-treesit-support t)
(indent-bars-treesit-ignore-blank-lines-types '("module"))
;; Add other languages as needed
(indent-bars-treesit-scope '((python function_definition class_definition for_statement
if_statement with_statement while_statement)))
;; wrap may not be needed if no-descend-list is enough
;;(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-mode) . indent-bars-mode)
:hook (prog-mode . indent-bars-mode)
)
(provide 'init-indent-bars)