Skip to content

Commit

Permalink
Use dolist refactor code.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Jun 13, 2023
1 parent 5e4281d commit fa91134
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lsp-bridge-jdtls.el
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ E.g. Use `-javaagent:/home/user/.emacs.d/plugin/lombok.jar` to add lombok suppor
"Determine whether it is a single file mode?"
(string-equal project-path filepath))

(add-hook 'java-mode-hook (lambda ()
(setq-local lsp-bridge-get-single-lang-server-by-project 'lsp-bridge-get-jdtls-server-by-project)))
(add-hook 'java-ts-mode-hook (lambda ()
(setq-local lsp-bridge-get-single-lang-server-by-project 'lsp-bridge-get-jdtls-server-by-project)))
(dolist (hook (list
'java-mode-hook
'java-ts-mode-hook))
(add-hook hook (lambda () (setq-local lsp-bridge-get-single-lang-server-by-project 'lsp-bridge-get-jdtls-server-by-project))))

(defun lsp-bridge-jdtls-apply-workspace-edit (action &optional temp-buffer)
"Command java.apply.workspaceEdit handler."
Expand Down

0 comments on commit fa91134

Please sign in to comment.