From ab3376869d5516e53dcfe3e124d1ea7e2ba5781d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 11 Aug 2020 19:19:01 -0400 Subject: [PATCH] Fix #3731: fix dap-java keybinds --- modules/lang/java/+lsp.el | 1 + modules/lang/java/autoload/lsp.el | 2 ++ 2 files changed, 3 insertions(+) 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))))