Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
svaante committed Sep 11, 2024
1 parent 4fb5a99 commit 96c549d
Showing 1 changed file with 24 additions and 23 deletions.
47 changes: 24 additions & 23 deletions dape.el
Original file line number Diff line number Diff line change
Expand Up @@ -5245,27 +5245,28 @@ See `dape--config-mode-p' how \"valid\" is defined."
"Hook function to produce doc strings for `eldoc'.
On success calls CB with the doc string.
See `eldoc-documentation-functions', for more information."
(and-let* ((conn (dape--live-connection 'last t))
((dape--capable-p conn :supportsEvaluateForHovers))
(symbol (thing-at-point 'symbol)))
(dape--with-request-bind
(body error)
(dape--evaluate-expression conn
(plist-get (dape--current-stack-frame conn) :id)
(substring-no-properties symbol)
"hover")
(unless error
(funcall cb
(format "%s %s"
(or (plist-get body :value)
(plist-get body :result)
"")
(propertize
(or (plist-get body :type) "")
'face 'font-lock-type-face))
:thing symbol
:face 'font-lock-variable-name-face))))
t)
(and-let* ((conn (dape--live-connection 'last t))
((dape--capable-p conn :supportsEvaluateForHovers))
(symbol (thing-at-point 'symbol)))
(dape--with-request-bind
(body error)
(dape--evaluate-expression
conn
(plist-get (dape--current-stack-frame conn) :id)
(substring-no-properties symbol)
"hover")
(unless error
(funcall cb
(format "%s %s"
(or (plist-get body :value)
(plist-get body :result)
"")
(propertize
(or (plist-get body :type) "")
'face 'font-lock-type-face))
:thing symbol
:face 'font-lock-variable-name-face))))
t)

(defun dape--add-eldoc-hook ()
"Add `dape-hover-function' from eldoc hook."
Expand Down Expand Up @@ -5319,8 +5320,8 @@ See `eldoc-documentation-functions', for more information."
help-echo "Dape: Debug Adapter Protocol for Emacs\n\
mouse-1: Display minor mode menu"
keymap ,(let ((map (make-sparse-keymap)))
(define-key map [mode-line down-mouse-1] dape-menu)
map))
(define-key map [mode-line down-mouse-1] dape-menu)
map))
":"
(:propertize ,(format "%s" (or (and conn (dape--state conn))
'unknown))
Expand Down

0 comments on commit 96c549d

Please sign in to comment.