Skip to content

Commit

Permalink
feat(controls): disconnect
Browse files Browse the repository at this point in the history
See #225
  • Loading branch information
rcarriga committed Feb 7, 2023
1 parent 885e958 commit dc96090
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/nvim-dap-ui.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Default values:
element = "repl",
enabled = true,
icons = {
disconnect = "",
pause = "",
play = "",
run_last = "",
Expand Down Expand Up @@ -166,7 +167,7 @@ Open a floating window containing the result of evaluting an expression
If no fixed dimensions are given, the window will expand to fit the contents
of the buffer.
Parameters~
{expr} `(string)` Expression to evaluate. If nil, then in normal more the
{expr?} `(string)` Expression to evaluate. If nil, then in normal more the
current word is used, and in visual mode the currently highlighted text.
{args} `(dapui.EvalArgs)`

Expand Down Expand Up @@ -375,7 +376,7 @@ Mappings:

Add a new watch expression
Parameters~
{expr} `(string)`
{expr?} `(string)`

*dapui.elements.watches.edit()*
`edit`({index}, {new_expr})
Expand Down
1 change: 1 addition & 0 deletions lua/dapui/config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ local default_config = {
step_back = "",
run_last = "",
terminate = "",
disconnect = "",
},
},
render = {
Expand Down
1 change: 1 addition & 0 deletions lua/dapui/elements/repl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ return function()
--- The REPL provided by nvim-dap.
dapui.elements.repl = {}

---@nodoc
local function get_buffer()
-- TODO: All of this is a hack because of an error with indentline when buffer
-- is opened in a window so have to manually find the window that was opened.
Expand Down
1 change: 1 addition & 0 deletions lua/dapui/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ function dapui.controls(is_active)
{ func = "step_back", hl = avail_hl(is_active and "DapUIStepBack" or "DapUIStepBackNC") },
{ func = "run_last", hl = is_active and "DapUIRestart" or "DapUIRestartNC" },
{ func = "terminate", hl = avail_hl(is_active and "DapUIStop" or "DapUIStopNC", true) },
{ func = "disconnect", hl = avail_hl(is_active and "DapUIStop" or "DapUIStopNC", true) },
}
local bar = ""
for _, elem in ipairs(elems) do
Expand Down

0 comments on commit dc96090

Please sign in to comment.