Add java lsp
This commit is contained in:
parent
1133ba17f1
commit
121242e037
11
init.el
11
init.el
|
@ -305,6 +305,17 @@
|
||||||
(use-package lsp-treemacs
|
(use-package lsp-treemacs
|
||||||
:after (lsp-mode 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
|
;; Nix support
|
||||||
(use-package nix-mode
|
(use-package nix-mode
|
||||||
:mode "\\.nix\\'"
|
:mode "\\.nix\\'"
|
||||||
|
|
Loading…
Reference in a new issue