From 869527ec5b8ea7d6d4a012f175e7c4e756eac60b Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Mon, 26 Aug 2024 19:36:28 -0400 Subject: [PATCH] fix(lsp-java): use proper feature name in config --- config.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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