Turn off super-save in rust-mode

Related to , it appears that `super-save` doesn't play nicely
with LSP features in `rust-mode`.
This commit is contained in:
Jennifer Page 2023-12-16 15:18:05 -05:00 committed by Bozhidar Batsov
parent 7aa4ae9fc1
commit 1e9336dc03
2 changed files with 4 additions and 0 deletions

View file

@ -48,6 +48,9 @@
(require 'tree-sitter)
(require 'tree-sitter-langs)
(add-to-list 'super-save-predicates
(lambda () (not (eq major-mode 'rust-mode))))
(with-eval-after-load 'rust-mode
(add-hook 'rust-mode-hook 'cargo-minor-mode)
(add-hook 'flycheck-mode-hook 'flycheck-rust-setup)