Fix starting lsp for java mode

This commit is contained in:
Adam Goldsmith 2019-06-15 17:28:53 -04:00
parent fd7ed0a897
commit 27d6e7014c

View File

@ -513,7 +513,7 @@
(use-package flycheck :ensure)
(use-package lsp-mode :ensure
:hook ((python-mode html-mode web-mode css-mode js2-mode) . lsp)
:hook ((python-mode html-mode web-mode css-mode js2-mode java-mode) . lsp)
:config
(setq lsp-prefer-flymake nil)
(use-package lsp-clients :demand)
@ -537,8 +537,7 @@
;; lsp-ui-sideline-update-mode 'point
))
(use-package lsp-java
:hook (java-mode . lsp-java-enable)
(use-package lsp-java :demand
:config
(setq lsp-java-save-action-organize-imports nil)))