Skip to content

Commit

Permalink
Turn off super-save in rust-mode
Browse files Browse the repository at this point in the history
Related to #1372, it appears that `super-save` doesn't play nicely
with LSP features in `rust-mode`.
  • Loading branch information
jmpage authored and bbatsov committed Apr 3, 2024
1 parent 7aa4ae9 commit 1e9336d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 3 additions & 0 deletions modules/prelude-rust.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1e9336d

Please sign in to comment.