Make lsp-java suck a bit less
This commit is contained in:
parent
13ddf9e501
commit
d02cf8abcc
@ -425,13 +425,19 @@
|
|||||||
|
|
||||||
(use-package lsp-mode :ensure
|
(use-package lsp-mode :ensure
|
||||||
:config
|
:config
|
||||||
|
(setq lsp-inhibit-message t
|
||||||
|
lsp-eldoc-render-all nil)
|
||||||
|
|
||||||
(use-package company-lsp :ensure
|
(use-package company-lsp :ensure
|
||||||
:config
|
:config
|
||||||
(push 'company-lsp company-backends))
|
(push 'company-lsp company-backends)
|
||||||
|
(setq company-lsp-enable-snippet t
|
||||||
|
company-lsp-cache-candidates t))
|
||||||
|
|
||||||
(use-package lsp-ui :ensure
|
(use-package lsp-ui :ensure
|
||||||
:config
|
:config
|
||||||
(setq lsp-ui-sideline-ignore-duplicate t)
|
(setq lsp-ui-sideline-ignore-duplicate t
|
||||||
|
lsp-ui-sideline-update-mode 'point)
|
||||||
(add-hook 'lsp-mode-hook 'lsp-ui-mode))
|
(add-hook 'lsp-mode-hook 'lsp-ui-mode))
|
||||||
|
|
||||||
(use-package lsp-python
|
(use-package lsp-python
|
||||||
@ -440,7 +446,9 @@
|
|||||||
|
|
||||||
(use-package lsp-java
|
(use-package lsp-java
|
||||||
;; requires eclipse jdt language server ("jdtls" in arch)
|
;; requires eclipse jdt language server ("jdtls" in arch)
|
||||||
:hook (java-mode . lsp-java-enable))
|
:hook (java-mode . lsp-java-enable)
|
||||||
|
:config
|
||||||
|
(setq lsp-java-save-action-organize-imports nil))
|
||||||
|
|
||||||
(use-package lsp-javascript-typescript
|
(use-package lsp-javascript-typescript
|
||||||
;; Requires javascript-typescript-langserver installed locally
|
;; Requires javascript-typescript-langserver installed locally
|
||||||
|
Loading…
Reference in New Issue
Block a user