From 526b9054e4d19a8d9bd755f546251927d09bffd7 Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Tue, 18 Aug 2020 23:05:55 +0200 Subject: [PATCH] Maps for showing and hiding docs (hide by default) --- modules/jenga-rust.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/jenga-rust.el b/modules/jenga-rust.el index 06eebbe..a9cf08f 100644 --- a/modules/jenga-rust.el +++ b/modules/jenga-rust.el @@ -19,10 +19,17 @@ (use-package lsp-ui :commands lsp-ui-mode :config (setq lsp-ui-peek-enable t) + (setq lsp-ui-doc-enable nil) + (setq lsp-ui-doc-use-childframe t) + (setq lsp-ui-doc-header nil) + (setq lsp-ui-doc-position 'top) + (setq lsp-ui-doc-use-webkit nil) :bind (:map lsp-ui-mode-map ("M-." . lsp-ui-peek-find-definitions) ("M-," . lsp-ui-peek-jump-backward) ("M-?" . lsp-ui-peek-find-references) + ("M-h" . lsp-ui-doc-show) + ("M-j" . lsp-ui-doc-hide) ("C-c u" . lsp-ui-imenu) ("C-c C-a" . lsp-ui-sideline-apply-code-actions)))