Some fairly minimal changes
This commit is contained in:
@@ -115,4 +115,28 @@
|
||||
|
||||
(add-hook 'emacs-lisp-mode-hook (lambda () (lispy-mode 1)))
|
||||
|
||||
;; This package adds indent bars. Currently only configured for rust and python.
|
||||
(use-package indent-bars
|
||||
:ensure t
|
||||
:defer t
|
||||
:custom
|
||||
(indent-bars-no-descend-lists t) ; no extra bars in continued func arg lists
|
||||
(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)
|
||||
(rust trait_item impl_item
|
||||
macro_definition macro_invocation
|
||||
struct_item enum_item mod_item
|
||||
const_item let_declaration
|
||||
function_item for_expression
|
||||
if_expression loop_expression
|
||||
while_expression match_expression
|
||||
match_arm call_expression
|
||||
token_tree token_tree_pattern
|
||||
token_repetition)))
|
||||
(indent-bars-treesit-wrap '((rust arguments parameters)))
|
||||
:hook ((python-base-mode yaml-mode rust-mode) . indent-bars-mode))
|
||||
|
||||
;;; 15-lsp.el end here
|
||||
|
||||
Reference in New Issue
Block a user