aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha/dap.lua
diff options
context:
space:
mode:
authorAriel D'Alessandro <ariel.dalessandro@auto1.com>2022-07-26 13:09:47 +0200
committerAriel D'Alessandro <ariel.dalessandro@auto1.com>2022-07-26 13:09:47 +0200
commit5104ec63c52beb3c7dafe54c1a0f45d38686e4c3 (patch)
tree99a2ea6e5649e4e451e313d6b3bb966137ed2859 /lua/alpha/dap.lua
parent75927ccaf318b8d2eb4eeadd8f9e2189ba17db94 (diff)
downloadnvim-conf-5104ec63c52beb3c7dafe54c1a0f45d38686e4c3.tar.gz
nvim-conf-5104ec63c52beb3c7dafe54c1a0f45d38686e4c3.zip
more small improvements
Diffstat (limited to 'lua/alpha/dap.lua')
-rw-r--r--lua/alpha/dap.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/lua/alpha/dap.lua b/lua/alpha/dap.lua
index 1ee598a..1a4fc6f 100644
--- a/lua/alpha/dap.lua
+++ b/lua/alpha/dap.lua
@@ -64,7 +64,7 @@ local hydra = require("hydra")
local hint = [[
Nvim DAP
_d_: Start/Continue _j_: StepOver _k_: StepOut _l_: StepInto ^
- _bp_: Toogle Breakpoint _cb_: Conditional Breakpoint ^
+ _bp_: Toogle Breakpoint _bc_: Conditional Breakpoint ^
_c_: Run To Cursor _tt_: Go Debug Test
_s_: Start _x_: Stop Debbuging
^^ _<Esc>_
@@ -84,7 +84,10 @@ hydra({
body = "<leader>d",
heads = {
{ "d", dap.continue },
- { "s", dapui.open },
+ { "s", function ()
+ dap.continue()
+ dapui.open({})
+ end },
{ "bp", dap.toggle_breakpoint },
{ "l", dap.step_into },
{ "j", dap.step_over },
@@ -92,7 +95,7 @@ hydra({
{ "c", dap.run_to_cursor },
{ "tt", dap_go.debug_test },
{
- "cb",
+ "bc",
function()
vim.ui.input({ prompt = "Condition: " }, function(condition)
dap.toggle_breakpoint(condition)