From 1ac1bedfc6f3fea527adb4f5f2a5ba11199a473c Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 16 Oct 2019 23:26:11 -0700 Subject: [PATCH] =?UTF-8?q?Re-enable=20=E2=80=98lsp-ui-doc-mode=E2=80=99?= =?UTF-8?q?=20and=20enable=20=E2=80=98lsp-lens-mode=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oni-java.el | 6 +++++- oni-lsp.el | 8 ++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/oni-java.el b/oni-java.el index 531de76..cc03c94 100644 --- a/oni-java.el +++ b/oni-java.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2019.0930.203611 +;; Version: 2019.1016.231834 ;; Package-Requires: (oni-fci oni-data-dir lsp-java company-lsp lsp-ui hydra) ;; This program is free software; you can redistribute it and/or modify @@ -55,6 +55,10 @@ (setq lsp-java-workspace-cache-dir (oni-data-dir-locate "lsp-java/workspace/cache/")) +(setq lsp-java-references-code-lens-enabled t) +(setq lsp-java-implementations-code-lens-enabled t) +(setq lsp-java-save-actions-organize-imports t) + (add-hook 'java-mode-hook #'oni-java-enable-buffer-formatting) (add-hook 'java-mode-hook #'oni-java-only-fill-comments) (add-hook 'java-mode-hook 'auto-fill-mode) diff --git a/oni-lsp.el b/oni-lsp.el index 6af5ec0..78581a4 100644 --- a/oni-lsp.el +++ b/oni-lsp.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2019.0904.210643 +;; Version: 2019.1016.231222 ;; Package-Requires: (lsp-mode lsp-ui) ;; This program is free software; you can redistribute it and/or modify @@ -31,8 +31,12 @@ (setq lsp-prefer-flymake nil) -(setq lsp-ui-doc-enable nil) +(setq lsp-ui-doc-enable t) (setq lsp-ui-sideline-enable nil) +(setq lsp-ui-doc-position 'at-point) +(setq lsp-ui-doc-delay 1) + +(add-hook 'lsp-mode-hook 'lsp-lens-mode) ;;;###autoload(with-eval-after-load 'lsp (require 'oni-lsp))