Maps for showing and hiding docs (hide by default)

This commit is contained in:
Vladan Popovic 2020-08-18 23:05:55 +02:00
parent 221a6aa5c5
commit 526b9054e4
1 changed files with 7 additions and 0 deletions

View File

@ -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)))