Fix starting lsp for java mode
This commit is contained in:
parent
fd7ed0a897
commit
27d6e7014c
@ -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)))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user