From d4838a8afe2a3ba203630f11f7a009a83d1c9e80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Fri, 6 Nov 2020 22:30:07 +0100 Subject: [PATCH] move disable lsp-ui and move its key bindings to its own use-package --- init.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/init.el b/init.el index bdfd10a..17f9b5e 100644 --- a/init.el +++ b/init.el @@ -433,9 +433,7 @@ of the key binding used to execute this command." ;; reformat Go code and add missing (or remove old) imports :hook ((before-save . my-lsp-format-buffer) (before-save . my-lsp-organize-imports)) - :bind (("C-c d" . lsp-ui-doc-show) - ("C-c i" . lsp-ui-imenu) - ("C-c e n" . flymake-goto-next-error) + :bind (("C-c e n" . flymake-goto-next-error) ("C-c e p" . flymake-goto-prev-error) ("C-c e r" . lsp-find-references) ("C-c e R" . lsp-rename) @@ -444,9 +442,10 @@ of the key binding used to execute this command." (use-package lsp-ui :init - (setq lsp-ui-doc-delay 1.0 + (setq lsp-ui-doc-enable nil lsp-ui-sideline-delay 5.0) - :defer) + :bind (("C-c d" . lsp-ui-doc-show) + ("C-c i" . lsp-ui-imenu))) ;;; Compilation