Skip to content

Instantly share code, notes, and snippets.

@rosholger
rosholger / init.el
Created April 29, 2024 14:21
eglot jdt.ls .class in .jar file support
(defun my-jdtls-program-command-constructor (_interactive)
`("jdtls" :initializationOptions (:extendedClientCapabilities
(:classFileContentsSupport t
:skipProjectConfiguration t))))
(push (cons '(java-mode java-ts-mode) #'my-jdtls-program-command-constructor)
eglot-server-programs)
(cl-defmethod eglot-execute-command
(_server (_method (eql java.apply.workspaceEdit)) arguments)