Some fairly minimal changes

This commit is contained in:
2025-08-06 19:42:39 +09:00
parent 42484af1ec
commit 991a67a19b
7 changed files with 124 additions and 19 deletions

View File

@@ -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