]> git.eshelyaron.com Git - emacs.git/commitdiff
; fix thinko in last commit
authorStefan Kangas <stefankangas@gmail.com>
Mon, 17 Jan 2022 22:32:50 +0000 (23:32 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Mon, 17 Jan 2022 22:34:05 +0000 (23:34 +0100)
lisp/progmodes/eglot.el

index fb2f1ba100d91d04bab4ee19452ea48bffb1ebae..219bcc85bd9c984b36e3aaedb90e5c51ca050711 100644 (file)
@@ -142,7 +142,7 @@ chosen (interactively or automatically)."
                       when probe return (cons probe args)
                       finally (funcall err)))))))
 
-(defvar eglot-server-programs `((rust-mode . ("rust-analyzer" "rls"))
+(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives '("rust-analyzer" "rls")))
                                 (cmake-mode . ("cmake-language-server"))
                                 (vimrc-mode . ("vim-language-server" "--stdio"))
                                 (python-mode