Skip to content

Commit d8cce7d

Browse files
author
fredbert
committed
new command lsp-ui-doc-toggle
1 parent e5a5623 commit d8cce7d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lsp-ui-doc.el

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,13 @@ It is supposed to be called from `lsp-ui--toggle'"
11821182
(lsp-ui-doc-unfocus-frame) ;; In case focus is in doc frame
11831183
(lsp-ui-doc--hide-frame))
11841184

1185+
(defun lsp-ui-doc-toggle ()
1186+
"Toggle hover information popup."
1187+
(interactive)
1188+
(if (lsp-ui-doc--visible-p)
1189+
(lsp-ui-doc-hide)
1190+
(lsp-ui-doc-show)))
1191+
11851192
(defun lsp-ui-doc-glance ()
11861193
"Trigger display hover information popup and hide it on next typing."
11871194
(interactive)

0 commit comments

Comments
 (0)