Home Gen377 @ 2024-10-25-14:46

This commit is contained in:
2024-10-25 14:46:51 +02:00
parent e6ca78b611
commit 24c7c5907a
2 changed files with 4 additions and 6 deletions

View File

@@ -139,13 +139,11 @@
(defun my-ui-doc-glance-then-focus ()
"Glances UI-Doc if not present, otherwise focus"
(interactive)
(if (lsp-ui-doc--frame-visible-p)
(progn
(lsp-ui-doc-hide)
(lsp-ui-doc-show)
(lsp-ui-doc-focus-frame))
(if (lsp-ui-doc--visible-p)
(lsp-ui-doc-focus-frame)
(lsp-ui-doc-glance)))
(map! :map (cpp-mode-map c-mode-map c++-mode-map lsp-mode-map)
:desc "Show Doc-UI" :n "C-h" #'my-ui-doc-glance-then-focus)