<commit_before>;;; lang/java/+lsp.el -*- lexical-binding: t; -*-
;;;###if (featurep! +lsp)

;;;###autoload
(defun +java/update-lsp-server ()
  (interactive)
  (lsp--install-server-internal (gethash 'jdtls lsp-clients) t))

(add-hook! java-mode-local-vars #'lsp!)
(map! :map java-mode-map
      :localleader
      :desc "Update the Eclipse LSP server" "U" #'+java/update-lsp-server)

(use-package! lsp-java
  :after (lsp-clients dap-mode)
  :preface
  (setq lsp-java-server-install-dir (concat doom-etc-dir "eclipse.jdt.ls/server/")
        lsp-java-workspace-dir (concat doom-etc-dir "java-workspace")))<commit_msg>Move hook into use-package, remove update-lsp-server<commit_after>;;; lang/java/+lsp.el -*- lexical-binding: t; -*-
;;;###if (featurep! +lsp)

(use-package! lsp-java
  :after (lsp-clients dap-mode)
  :preface
  (setq lsp-java-server-install-dir (concat doom-etc-dir "eclipse.jdt.ls/server/")
        lsp-java-workspace-dir (concat doom-etc-dir "java-workspace"))
  (add-hook! java-mode-local-vars #'lsp!)
  :config
  ;; TODO keybinds
  )
{'fraction_non_alphanumeric': 0.19296577946768062, 'fraction_numerical': 0.0, 'mean_word_length': 3.764705882352941, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5737976', 'n_tokens_mistral': 428, 'n_tokens_neox': 419, 'n_words': 78}