all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#59138: Eglot support for java-language-server
@ 2022-11-09  0:34 Robert Brown
  2022-11-09 15:14 ` Stefan Kangas
  0 siblings, 1 reply; 9+ messages in thread
From: Robert Brown @ 2022-11-09  0:34 UTC (permalink / raw)
  To: 59138

[-- Attachment #1: Type: text/plain, Size: 112 bytes --]

The attached patch adds Eglot support for Java LSP server
https://github.com/georgewfraser/java-language-server

[-- Attachment #2: 0001-Support-for-java-language-server.patch --]
[-- Type: text/x-patch, Size: 1273 bytes --]

From 8c874c0f277e2e1b85126120da9dcc54e4a938f8 Mon Sep 17 00:00:00 2001
From: Robert Brown <robert.brown@gmail.com>
Date: Tue, 8 Nov 2022 19:23:10 -0500
Subject: [PATCH] Support for java-language-server

 * lisp/progmodes/eglot.el (eglot-server-programs): Add support for
   Java server https://github.com/georgewfraser/java-language-server
---
 lisp/progmodes/eglot.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index ce989b5611..199c832f6b 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -209,7 +209,8 @@ eglot-server-programs
                                 (go-mode . ("gopls"))
                                 ((R-mode ess-r-mode) . ("R" "--slave" "-e"
                                                         "languageserver::run()"))
-                                (java-mode . ("jdtls"))
+                                (java-mode
+                                 . ,(eglot-alternatives '("jdtls" "java-language-server")))
                                 (dart-mode . ("dart" "language-server"
                                               "--client-id" "emacs.eglot-dart"))
                                 (elixir-mode . ("language_server.sh"))
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-12-03  3:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-09  0:34 bug#59138: Eglot support for java-language-server Robert Brown
2022-11-09 15:14 ` Stefan Kangas
     [not found]   ` <CAPNkkp=1Yk08Qk2zhDKuqyAWCebRKOVJs-vzFWCFeXQw9zPomQ@mail.gmail.com>
2022-11-09 16:07     ` Stefan Kangas
2022-11-09 16:25       ` Robert Brown
2022-11-09 16:58         ` João Távora
2022-11-09 17:00         ` Eli Zaretskii
2022-11-25  8:15           ` Stefan Kangas
2022-12-03  1:06             ` Robert Brown
2022-12-03  3:14               ` Stefan Kangas

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.