Skip to content

Commit 1e9336d

Browse files
jmpagebbatsov
authored andcommitted
Turn off super-save in rust-mode
Related to #1372, it appears that `super-save` doesn't play nicely with LSP features in `rust-mode`.
1 parent 7aa4ae9 commit 1e9336d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* Fix fall back to sample `prelude-modules.el` not working if user has installed to non-default location.
3535
* Stop requiring `helm-config` since upstream has removed the module.
3636
* Require `typescript-mode` using `prelude-require-packages` to avoid error upon inclusion in `personal/prelude-modules.el`.
37+
* Turn off `super-save` in `rust-mode` to prevent severe hangs during autocomplete.
3738

3839
## 1.1.0 (2021-02-14)
3940

modules/prelude-rust.el

+3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
(require 'tree-sitter)
4949
(require 'tree-sitter-langs)
5050

51+
(add-to-list 'super-save-predicates
52+
(lambda () (not (eq major-mode 'rust-mode))))
53+
5154
(with-eval-after-load 'rust-mode
5255
(add-hook 'rust-mode-hook 'cargo-minor-mode)
5356
(add-hook 'flycheck-mode-hook 'flycheck-rust-setup)

0 commit comments

Comments
 (0)