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) :hook ((css-mode . eglot-ensure)
(html-mode . eglot-ensure) (html-mode . eglot-ensure)
(php-mode . eglot-ensure) (php-mode . eglot-ensure)
(rust-mode . eglot-ensure)
(sh-mode . eglot-ensure)) (sh-mode . eglot-ensure))
:config :config
(add-to-list 'eglot-server-programs '(php-mode . ("intelephense" "--stdio"))) (add-to-list 'eglot-server-programs '(php-mode . ("intelephense" "--stdio")))

View File

@ -14,15 +14,16 @@
:config :config
(setq rust-format-on-save t)) (setq rust-format-on-save t))
(use-package rustic ;; Rustic es necesario solamente si se usa lsp-mode + flycheck.
:defer t ;; (use-package rustic
:straight t ;; :defer t
:ensure t ;; :straight t
:config ;; :ensure t
;;(setq rustic-lsp-server 'rls) ;; :config
;;(setq rustic-lsp-client 'lsp) ;; ;;(setq rustic-lsp-server 'rls)
;;(setq rustic-lsp-client nil) ;; (setq rustic-lsp-client 'lsp)
(push 'rustic-clippy flycheck-checkers)) ;; ;;(setq rustic-lsp-client nil)
;; (push 'rustic-clippy flycheck-checkers))
(provide 'lang-rust) (provide 'lang-rust)
;;; lang-rust.el ends here ;;; lang-rust.el ends here