From brotzeit/rustic@da3820d

Due to changes upstream, users can no longer use lsp-rust-server to
switch to rust-analyzer with rustic-mode. Use rustic-lsp-server instead.
This commit is contained in:
Henrik Lissner 2020-02-20 18:13:22 -05:00
parent 888d456dc9
commit cd3103b1be
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 6 additions and 7 deletions

View file

@ -21,15 +21,13 @@
;; buffers, so we disable it, but only for evil users, because it
;; affects `forward-sexp' and its ilk. See
;; https://github.com/rust-lang/rust-mode/issues/288.
rustic-match-angle-brackets (not (featurep! :editor evil))
;; We use the superior default client provided by `lsp-mode', not the
;; one rustic-mode sets up for us.
rustic-lsp-client nil)
rustic-match-angle-brackets (not (featurep! :editor evil)))
(add-hook 'rustic-mode-hook #'rainbow-delimiters-mode)
(if (featurep! +lsp)
(add-hook 'rustic-mode-local-vars-hook #'lsp!)
(setq rustic-lsp-server nil)
(after! rustic-flycheck
(add-to-list 'flycheck-checkers 'rustic-clippy)))
@ -51,7 +49,8 @@
:desc "current test" "t" #'rustic-cargo-current-test))
;; If lsp/elgot isn't available, it attempts to install lsp-mode via
;; package.el. Doom manages its own dependencies so we disable that behavior.
;; package.el. Doom manages its own dependencies through straight so disable
;; this behavior to avoid package-not-initialized errors.
(defadvice! +rust--dont-install-packages-p (&rest _)
:override #'rustic-install-lsp-client-p
(message "No LSP server running")))