Configure eglot+rust.

This commit is contained in:
kj 2023-02-05 17:28:21 -04:00
parent 92e3f98271
commit 8743e40381
2 changed files with 11 additions and 9 deletions

View File

@ -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")))

View File

@ -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)
;; 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))
;; ;;(setq rustic-lsp-client nil)
;; (push 'rustic-clippy flycheck-checkers))
(provide 'lang-rust)
;;; lang-rust.el ends here