From 21a99c6f9715e36281e55a4279f68d7cfbbb8e25 Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Mon, 28 Dec 2020 10:24:23 +0100 Subject: eglot: Enable in rust-mode --- lisp/init-eglot.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lisp/init-eglot.el') diff --git a/lisp/init-eglot.el b/lisp/init-eglot.el index ed8c284..14ae7a3 100644 --- a/lisp/init-eglot.el +++ b/lisp/init-eglot.el @@ -2,10 +2,12 @@ :ensure t :hook ;; load eglot automatically for these modes - ;; go requires gopls: env GO111MODULE=on go get golang.org/x/tools/gopls@latest - ;; python requires pyls: python3 -m pip install --user python-language-server + ;; - go with gopls: env GO111MODULE=on go get -u golang.org/x/tools/gopls@latest + ;; - python with pyls: python3 -m pip install --user python-language-server + ;; - rust with rls: rustup component add rls ((go-mode . eglot-ensure) (python-mode . eglot-ensure) + (rust-mode . eglot-ensure) ;; format on save (before-save . eglot-format)) -- cgit v1.2.3