Fix jdtls (as much as possible)

This commit is contained in:
outfoxxed 2023-08-20 14:33:58 -07:00
parent 121242e037
commit 6b49d38307
Signed by: outfoxxed
GPG Key ID: 4C88A185FB89301E
1 changed files with 4 additions and 3 deletions

View File

@ -308,13 +308,14 @@
;; Java lsp
(use-package lsp-java
:after lsp-mode
:hook (java-mode . lsp)
:hook (java-ts-mode . lsp-deferred)
:config
(setq lsp-java-server-install-dir (getenv "JDTLS_PATH"))
(defun lsp-java--ls-command ()
(list "jdt-language-server"
"-configuration" "../jdt-configuration"
"-data" "../jdt-workspace")))
;; this is called "configuration" for come reasn, its acually a cache
"-configuration" (concat (file-name-as-directory (getenv "XDG_CACHE_HOME")) "jdtls")
"-data" "../.jdtls")))
;; Nix support
(use-package nix-mode