diff --git a/modules/lang/java/+lsp.el b/modules/lang/java/+lsp.el index 2fbaff0b5..cd36e7574 100644 --- a/modules/lang/java/+lsp.el +++ b/modules/lang/java/+lsp.el @@ -2,6 +2,7 @@ ;;;###if (featurep! +lsp) (use-package! lsp-java + :commands dap-java-run-test-class dap-java-debug-test-class :after lsp-clients :preface (setq lsp-java-workspace-dir (concat doom-etc-dir "java-workspace")) diff --git a/modules/lang/java/autoload/lsp.el b/modules/lang/java/autoload/lsp.el index 332c371ec..847174f09 100644 --- a/modules/lang/java/autoload/lsp.el +++ b/modules/lang/java/autoload/lsp.el @@ -6,6 +6,7 @@ "Runs test at point. If in a method, runs the test method, otherwise runs the entire test class." (interactive) + (require 'lsp-java) (condition-case nil (dap-java-run-test-method) (user-error (dap-java-run-test-class)))) @@ -15,6 +16,7 @@ If in a method, runs the test method, otherwise runs the entire test class." "Runs test at point in a debugger. If in a method, runs the test method, otherwise runs the entire test class." (interactive) + (require 'lsp-java) (condition-case nil (call-interactively #'dap-java-debug-test-method) (user-error (call-interactively #'dap-java-debug-test-class))))