Configure eglot+rust.
This commit is contained in:
parent
92e3f98271
commit
8743e40381
@ -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")))
|
||||||
|
@ -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-server 'rls)
|
||||||
;; (setq rustic-lsp-client 'lsp)
|
;; (setq rustic-lsp-client 'lsp)
|
||||||
;;(setq rustic-lsp-client nil)
|
;; ;;(setq rustic-lsp-client nil)
|
||||||
(push 'rustic-clippy flycheck-checkers))
|
;; (push 'rustic-clippy flycheck-checkers))
|
||||||
|
|
||||||
(provide 'lang-rust)
|
(provide 'lang-rust)
|
||||||
;;; lang-rust.el ends here
|
;;; lang-rust.el ends here
|
||||||
|
Loading…
Reference in New Issue
Block a user