From d02cf8abcc2aa19d54d895bb1e4bf28e549a6604 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 13 Sep 2018 22:19:27 -0400 Subject: [PATCH] Make lsp-java suck a bit less --- .emacs.d/init.el | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 95044f8..f0ab462 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -425,13 +425,19 @@ (use-package lsp-mode :ensure :config + (setq lsp-inhibit-message t + lsp-eldoc-render-all nil) + (use-package company-lsp :ensure :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 :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)) (use-package lsp-python @@ -440,7 +446,9 @@ (use-package lsp-java ;; 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 ;; Requires javascript-typescript-langserver installed locally