Home Gen377 @ 2024-10-25-14:46
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user