Turn off super-save in rust-mode
Some checks failed
CI / build (push) Failing after 13s

Related to #1372, 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

@ -34,6 +34,7 @@
* Fix fall back to sample `prelude-modules.el` not working if user has installed to non-default location.
* Stop requiring `helm-config` since upstream has removed the module.
* Require `typescript-mode` using `prelude-require-packages` to avoid error upon inclusion in `personal/prelude-modules.el`.
* Turn off `super-save` in `rust-mode` to prevent severe hangs during autocomplete.
## 1.1.0 (2021-02-14)

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)