diff options
| author | Ariel D'Alessandro <ariel.dalessandro@auto1.com> | 2022-07-13 11:18:53 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <ariel.dalessandro@auto1.com> | 2022-07-13 11:18:53 +0200 |
| commit | 9aea96f6f267c9924462a7ff88e7361ccf736ce7 (patch) | |
| tree | ca0fbbd6a17957fefefc4befe625a3ad11144162 /lua/alpha/dap.lua | |
| parent | d9ec8b7e5cf9d37077686bc3733d9e99252b6d38 (diff) | |
| download | nvim-conf-9aea96f6f267c9924462a7ff88e7361ccf736ce7.tar.gz nvim-conf-9aea96f6f267c9924462a7ff88e7361ccf736ce7.zip | |
Update dap for conditional, update cmp
Diffstat (limited to 'lua/alpha/dap.lua')
| -rw-r--r-- | lua/alpha/dap.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lua/alpha/dap.lua b/lua/alpha/dap.lua index 4bf0782..c0df3c8 100644 --- a/lua/alpha/dap.lua +++ b/lua/alpha/dap.lua @@ -65,6 +65,11 @@ local bindings = { { mode = "n", lhs = "<leader>dk", rhs = dap.step_out }, { mode = "n", lhs = "<leader>dc", rhs = dap.run_to_cursor }, { mode = "v", lhs = "<leader>dv", rhs = dapui.eval }, + { mode = "n", lhs = "<leader>dcb", rhs = function () + vim.ui.input({prompt = "Condition: "}, function (condition) + dap.toggle_breakpoint(condition) + end) + end }, } vim.keymap.set("n", "<leader>dst", function() @@ -80,7 +85,7 @@ vim.keymap.set("n", "<leader>dsp", function() dap.clear_breakpoints() for _, bind in pairs(bindings) do - vim.keymap.del("n", bind.lhs) + vim.keymap.del(bind.mode, bind.lhs) end end, { noremap = true }) |