Skip to content

Commit 038521a

Browse files
authored
feat(dap-ui): Make overlay's priority customizable (#770)
1 parent 755845a commit 038521a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

dap-ui.el

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ number - expand N levels."
5757
(number :tag "Expand level"))
5858
:group 'dap-ui)
5959

60+
(defcustom dap-ui-overlay-priority 100
61+
"Overlay's base prioirty."
62+
:type 'integer
63+
:group 'dap-ui)
64+
6065
(defcustom dap-ui-controls-screen-position #'posframe-poshandler-frame-top-center
6166
"On-screen position of controls when they are visible."
6267
:type '(choice (const :tag "Top center" posframe-poshandler-frame-top-center)
@@ -254,7 +259,7 @@ BREAKPOINT-DAP - nil or the data comming from DAP."
254259
:fringe (if (and breakpoint-dap (gethash "verified" breakpoint-dap))
255260
'dap-ui-breakpoint-verified-fringe
256261
'breakpoint-disabled)
257-
:priority 1))
262+
:priority (+ dap-ui-overlay-priority 1)))
258263

259264
(defun dap-ui--refresh-breakpoints ()
260265
"Refresh breakpoints in FILE-NAME.
@@ -291,7 +296,7 @@ DEBUG-SESSION the new breakpoints for FILE-NAME."
291296
:char ">"
292297
:bitmap 'right-triangle
293298
:fringe 'dap-ui-compile-errline
294-
:priority 2))))
299+
:priority (+ dap-ui-overlay-priority 2)))))
295300

296301
(defun dap-ui--stack-frame-changed (debug-session)
297302
"Handler for `dap-stack-frame-changed-hook'.

0 commit comments

Comments
 (0)