diff --git a/modules/home/doom/static/config.el b/modules/home/doom/static/config.el index 483e00e..258c99e 100644 --- a/modules/home/doom/static/config.el +++ b/modules/home/doom/static/config.el @@ -139,7 +139,7 @@ (defun my-ui-doc-glance-then-focus () "Glances UI-Doc if not present, otherwise focus" (interactive) - (if lsp-ui-doc--bounds + (if (lsp-ui-doc--frame-visible-p) (progn (lsp-ui-doc-hide) (lsp-ui-doc-show) @@ -149,7 +149,4 @@ (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) - -;; Bind C-h to the handler function -(map! "C-h" #'my-c-h-handler) (set-formatter! 'alejandra '("alejandra" "--quiet") :modes '(nix-mode))