diff --git a/config.org b/config.org index d96ef93..c260af1 100644 --- a/config.org +++ b/config.org @@ -4120,7 +4120,7 @@ I prefer 2-space indentation in all circumstances. Unfortunately, Emacs's indent #+call: confpkg("Mode: Java") -The =lsp-java= package provides LSP support using the standard language server, the Eclipse-based ~jdtls~. Unfortunately, this package isn't designed for Nix, so it fails to find the server script in our Nix store. We need to do a bit of legwork to patch in this support, as well as some extra considerations, such as per-project config directories. +The =lsp-java= package provides LSP support using the standard Java language server, the Eclipse-based ~jdtls~. Unfortunately, this package isn't designed for Nix, so it fails to find the server script in our Nix store. We need to do a bit of legwork to patch in this support, as well as some related considerations, such as per-project config directories. #+begin_src emacs-lisp (defun +lsp-java-server-store-path () @@ -4131,7 +4131,7 @@ The =lsp-java= package provides LSP support using the standard language server, (executable-find lsp-java-jdt-ls-command) (user-error "Could not find Java language server")))) -(after! java-mode +(after! lsp-java (setq lsp-java-jdt-ls-prefer-native-command t)) (add-hook! java-mode (setq-local lsp-java-server-install-dir