emacs: jdtls workaround is no longer necessary

This commit is contained in:
Charlotte Van Petegem 2023-07-15 19:35:24 +02:00
parent 7ef9340a35
commit a2e2b5cb14
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -45,12 +45,6 @@
"SPC p" '(flymake-goto-prev-error :which-key "Previous error")
)
:config
;;; eclipse-jdt breaks the spec which in turn breaks code actions
;;; This behaviour can't be disabled and needs to be worked around
(cl-defmethod eglot-execute-command
(_server (_cmd (eql java.apply.workspaceEdit)) arguments)
"Eclipse JDT breaks spec and replies with edits as arguments."
(mapc #'eglot--apply-workspace-edit arguments))
;;; eglot replaces company-backends with '(company-capf). I still
;;; want company-yasnippet as well though
(add-to-list 'eglot-stay-out-of "company")