Fix jdtls (as much as possible)
This commit is contained in:
parent
121242e037
commit
6b49d38307
7
init.el
7
init.el
|
@ -308,13 +308,14 @@
|
||||||
;; Java lsp
|
;; Java lsp
|
||||||
(use-package lsp-java
|
(use-package lsp-java
|
||||||
:after lsp-mode
|
:after lsp-mode
|
||||||
:hook (java-mode . lsp)
|
:hook (java-ts-mode . lsp-deferred)
|
||||||
:config
|
:config
|
||||||
(setq lsp-java-server-install-dir (getenv "JDTLS_PATH"))
|
(setq lsp-java-server-install-dir (getenv "JDTLS_PATH"))
|
||||||
(defun lsp-java--ls-command ()
|
(defun lsp-java--ls-command ()
|
||||||
(list "jdt-language-server"
|
(list "jdt-language-server"
|
||||||
"-configuration" "../jdt-configuration"
|
;; this is called "configuration" for come reasn, its acually a cache
|
||||||
"-data" "../jdt-workspace")))
|
"-configuration" (concat (file-name-as-directory (getenv "XDG_CACHE_HOME")) "jdtls")
|
||||||
|
"-data" "../.jdtls")))
|
||||||
|
|
||||||
;; Nix support
|
;; Nix support
|
||||||
(use-package nix-mode
|
(use-package nix-mode
|
||||||
|
|
Loading…
Reference in a new issue