From 8743e40381b726a62172e35e77d3e9c4a5f0986e Mon Sep 17 00:00:00 2001 From: kj Date: Sun, 5 Feb 2023 17:28:21 -0400 Subject: [PATCH] Configure eglot+rust. --- configs/init-eglot.el | 1 + configs/lang-rust.el | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/configs/init-eglot.el b/configs/init-eglot.el index dc593a6..f945d00 100644 --- a/configs/init-eglot.el +++ b/configs/init-eglot.el @@ -13,6 +13,7 @@ :hook ((css-mode . eglot-ensure) (html-mode . eglot-ensure) (php-mode . eglot-ensure) + (rust-mode . eglot-ensure) (sh-mode . eglot-ensure)) :config (add-to-list 'eglot-server-programs '(php-mode . ("intelephense" "--stdio"))) diff --git a/configs/lang-rust.el b/configs/lang-rust.el index b55baf5..84a45dc 100644 --- a/configs/lang-rust.el +++ b/configs/lang-rust.el @@ -14,15 +14,16 @@ :config (setq rust-format-on-save t)) -(use-package rustic - :defer t - :straight t - :ensure t - :config - ;;(setq rustic-lsp-server 'rls) - ;;(setq rustic-lsp-client 'lsp) - ;;(setq rustic-lsp-client nil) - (push 'rustic-clippy flycheck-checkers)) +;; Rustic es necesario solamente si se usa lsp-mode + flycheck. +;; (use-package rustic +;; :defer t +;; :straight t +;; :ensure t +;; :config +;; ;;(setq rustic-lsp-server 'rls) +;; (setq rustic-lsp-client 'lsp) +;; ;;(setq rustic-lsp-client nil) +;; (push 'rustic-clippy flycheck-checkers)) (provide 'lang-rust) ;;; lang-rust.el ends here