lang/rust: use default LSP client instead of rustic's

This commit is contained in:
Henrik Lissner 2019-12-05 20:21:15 -05:00
parent cd3190b594
commit f2f8503246
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -11,12 +11,9 @@
:mode ("\\.rs$" . rustic-mode) :mode ("\\.rs$" . rustic-mode)
:commands rustic-run-cargo-command rustic-cargo-outdated :commands rustic-run-cargo-command rustic-cargo-outdated
:preface :preface
(setq rustic-rls-pkg (if (featurep! +lsp) 'lsp-mode) ;; We use the superior default client provided by `lsp-mode', not the one
;; `rustic-setup-rls' uses `package-installed-p' to determine if ;; rustic-mode sets up for us.
;; lsp-mode/elgot are available. This breaks because Doom doesn't use (setq rustic-lsp-client nil)
;; package.el to begin with (and lazy loads it). This is already handled
;; by the :tools lsp module, so...
rustic-lsp-setup-p nil)
:config :config
(set-docsets! 'rustic-mode "Rust") (set-docsets! 'rustic-mode "Rust")