From 5a954c759fd56c06211a70da6021ae0225f9f5c2 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 17 Oct 2022 19:09:40 -0700 Subject: ref(rust): use eglot for lsp Change-Id: I060a37e7baee14cf6051dcb5390b9b986e5d6968 --- emacs/custom/my-lang-rust.el | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'emacs/custom/my-lang-rust.el') diff --git a/emacs/custom/my-lang-rust.el b/emacs/custom/my-lang-rust.el index e6374a7..b0d3904 100644 --- a/emacs/custom/my-lang-rust.el +++ b/emacs/custom/my-lang-rust.el @@ -6,19 +6,11 @@ ;;; Code: (require 'rustic) -(require 'lsp-rust) - -(setq lsp-rust-analyzer-cargo-watch-enable t) -(setq lsp-rust-analyzer-proc-macro-enable t) -(setq lsp-rust-full-docs t) -(setq lsp-rust-server 'rust-analyzer) (setq rustic-format-on-save t) -(setq rustic-lsp-client 'lsp-mode) +(setq rustic-lsp-client 'eglot) (setq rustic-lsp-server 'rust-analyzer) -(add-hook 'rusti-mode-hook #'lsp-deferred) - (provide 'my-lang-rust) ;;; my-lang-rust.el ends here -- cgit 1.4.1