]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix jdtls support
authorManuel Uberti <manuel.uberti@inventati.org>
Thu, 8 Sep 2022 10:36:56 +0000 (10:36 +0000)
committerGitHub <noreply@github.com>
Thu, 8 Sep 2022 10:36:56 +0000 (11:36 +0100)
PR https://github.com/joaotavora/eglot/issues/1026

* eglot.el (eglot-server-programs): Add -data setup for java-mode.

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

lisp/progmodes/eglot.el

index a04a4f762d469b07301825f47272383036a0dad0..80884903636d82ce179547d3cbe701e06664d2f9 100644 (file)
@@ -173,7 +173,7 @@ language-server/bin/php-language-server.php"))
                                 (go-mode . ("gopls"))
                                 ((R-mode ess-r-mode) . ("R" "--slave" "-e"
                                                         "languageserver::run()"))
-                                (java-mode . ("jdtls"))
+                                (java-mode . ("jdtls" "-data" ".jdtls-cache"))
                                 (dart-mode . ("dart" "language-server"
                                               "--client-id" "emacs.eglot-dart"))
                                 (elixir-mode . ("language_server.sh"))