]> git.eshelyaron.com Git - emacs.git/commitdiff
Make clojure-lsp handle more major modes at once
authorJoão Távora <joaotavora@gmail.com>
Mon, 26 Sep 2022 12:35:34 +0000 (13:35 +0100)
committerJoão Távora <joaotavora@gmail.com>
Mon, 26 Sep 2022 12:35:34 +0000 (13:35 +0100)
Suggested-by: Witoslaw Koczewski <wi@koczewski.de>
* eglot.el (eglot-server-programs): Enhance clojure-specific section.

GitHub-reference: per https://github.com/joaotavora/eglot/issues/682

lisp/progmodes/eglot.el

index 6a1eb1282c7219bd26ea36998ef99f7dfa97d948..58a150cf48b516e9102b9a0a51f45804a309ba96 100644 (file)
@@ -197,7 +197,8 @@ language-server/bin/php-language-server.php"))
                                 (html-mode . ,(eglot-alternatives '(("vscode-html-language-server" "--stdio") ("html-languageserver" "--stdio"))))
                                 (json-mode . ,(eglot-alternatives '(("vscode-json-language-server" "--stdio") ("json-languageserver" "--stdio"))))
                                 (dockerfile-mode . ("docker-langserver" "--stdio"))
-                                (clojure-mode . ("clojure-lsp"))
+                                ((clojure-mode clojurescript-mode clojurec-mode) 
+                                 . ("clojure-lsp"))
                                 (csharp-mode . ("omnisharp" "-lsp"))
                                 (purescript-mode . ("purescript-language-server" "--stdio"))
                                 (perl-mode . ("perl" "-MPerl::LanguageServer" "-e" "Perl::LanguageServer::run"))