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
|
||||
(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
|
||||
|
|
Loading…
Reference in a new issue