Fix closing brackets not undoing an indentation level in rust

This commit is contained in:
outfoxxed 2023-11-17 04:15:06 -08:00
parent e5fd4455d8
commit 3b55af550b
Signed by: outfoxxed
GPG Key ID: 4C88A185FB89301E
1 changed files with 4 additions and 0 deletions

View File

@ -332,6 +332,10 @@
(add-hook 'c++-ts-mode-hook #'lsp-deferred)
(add-hook 'typescript-ts-mode-hook #'lsp-deferred)
;; Fix indent
(add-hook 'rust-ts-mode-hook
(lambda () (setq-local electric-indent-chars '(?\n ?\( ?\) ?{ ?} ?\[ ?\] ?\; ?,))))
(setq gc-cons-threshold (* 1024 1024 100)
read-process-output-max (* 1024 1024))