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 flycheck :ensure)
(use-package lsp-mode :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 :config
(setq lsp-prefer-flymake nil) (setq lsp-prefer-flymake nil)
(use-package lsp-clients :demand) (use-package lsp-clients :demand)
@ -537,8 +537,7 @@
;; lsp-ui-sideline-update-mode 'point ;; lsp-ui-sideline-update-mode 'point
)) ))
(use-package lsp-java (use-package lsp-java :demand
:hook (java-mode . lsp-java-enable)
:config :config
(setq lsp-java-save-action-organize-imports nil))) (setq lsp-java-save-action-organize-imports nil)))