Skip to content

Java formatting options provided as initializationOptions.settings.java.format.settings.url are ignored #1377

Answered by manuel-uberti
HaraldKi asked this question in Q&A
Discussion options

You must be logged in to vote

Are you doing that setq globally? I am asking because it will set eglot-connect-hook for every server if you do it that way.

If that is a problem for you, I suggest something along the following lines:

(defun my-do-not-signal-didChangeConfiguration ()
  (remove-hook 'eglot-connect-hook #'eglot-signal-didChangeConfiguration t))

(add-hook 'java-mode-hook #'my-do-not-signal-didChangeConfiguration)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@manuel-uberti
Comment options

Answer selected by HaraldKi
@HaraldKi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants