Skip to content

Commit dc96090

Browse files
committed
feat(controls): disconnect
See #225
1 parent 885e958 commit dc96090

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

doc/nvim-dap-ui.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Default values:
5757
element = "repl",
5858
enabled = true,
5959
icons = {
60+
disconnect = "",
6061
pause = "",
6162
play = "",
6263
run_last = "",
@@ -166,7 +167,7 @@ Open a floating window containing the result of evaluting an expression
166167
If no fixed dimensions are given, the window will expand to fit the contents
167168
of the buffer.
168169
Parameters~
169-
{expr} `(string)` Expression to evaluate. If nil, then in normal more the
170+
{expr?} `(string)` Expression to evaluate. If nil, then in normal more the
170171
current word is used, and in visual mode the currently highlighted text.
171172
{args} `(dapui.EvalArgs)`
172173

@@ -375,7 +376,7 @@ Mappings:
375376

376377
Add a new watch expression
377378
Parameters~
378-
{expr} `(string)`
379+
{expr?} `(string)`
379380

380381
*dapui.elements.watches.edit()*
381382
`edit`({index}, {new_expr})

lua/dapui/config/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ local default_config = {
131131
step_back = "",
132132
run_last = "",
133133
terminate = "",
134+
disconnect = "",
134135
},
135136
},
136137
render = {

lua/dapui/elements/repl.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ return function()
1010
--- The REPL provided by nvim-dap.
1111
dapui.elements.repl = {}
1212

13+
---@nodoc
1314
local function get_buffer()
1415
-- TODO: All of this is a hack because of an error with indentline when buffer
1516
-- is opened in a window so have to manually find the window that was opened.

lua/dapui/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ function dapui.controls(is_active)
504504
{ func = "step_back", hl = avail_hl(is_active and "DapUIStepBack" or "DapUIStepBackNC") },
505505
{ func = "run_last", hl = is_active and "DapUIRestart" or "DapUIRestartNC" },
506506
{ func = "terminate", hl = avail_hl(is_active and "DapUIStop" or "DapUIStopNC", true) },
507+
{ func = "disconnect", hl = avail_hl(is_active and "DapUIStop" or "DapUIStopNC", true) },
507508
}
508509
local bar = ""
509510
for _, elem in ipairs(elems) do

0 commit comments

Comments
 (0)