Add java lsp

This commit is contained in:
outfoxxed 2023-08-20 13:41:18 -07:00
parent 1133ba17f1
commit 121242e037
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

11
init.el
View file

@ -305,6 +305,17 @@
(use-package lsp-treemacs
:after (lsp-mode treemacs))
;; Java lsp
(use-package lsp-java
:after lsp-mode
:hook (java-mode . lsp)
: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")))
;; Nix support
(use-package nix-mode
:mode "\\.nix\\'"