diff options
author | Martin Polden <mpolden@mpolden.no> | 2020-12-28 10:24:23 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2020-12-28 10:24:23 +0100 |
commit | 21a99c6f9715e36281e55a4279f68d7cfbbb8e25 (patch) | |
tree | f644fe9d25dd351841991c3f0495634fdfad9d7b /lisp/init-eglot.el | |
parent | da9ed529996b094f0f2e8ace59f7029628acfcea (diff) |
eglot: Enable in rust-mode
Diffstat (limited to 'lisp/init-eglot.el')
-rw-r--r-- | lisp/init-eglot.el | 6 |
1 files changed, 4 insertions, 2 deletions
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)) |