Skip to content

Commit f9ff951

Browse files
authored
Add commands for interactively displaying lsp-ui-doc popup (#222)
1 parent 786290f commit f9ff951

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lsp-ui-doc.el

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,5 +607,15 @@ HOVER is the returned signature information."
607607
It is supposed to be called from `lsp-ui--toggle'"
608608
(lsp-ui-doc-mode (if enable 1 -1)))
609609

610+
(defun lsp-ui-doc-show ()
611+
"Trigger display hover information popup."
612+
(interactive)
613+
(lsp-ui-doc--on-hover (lsp-request "textDocument/hover" (lsp--text-document-position-params))))
614+
615+
(defun lsp-ui-doc-hide ()
616+
"Hide hover information popup."
617+
(interactive)
618+
(lsp-ui-doc--hide-frame))
619+
610620
(provide 'lsp-ui-doc)
611621
;;; lsp-ui-doc.el ends here

0 commit comments

Comments
 (0)