diff --git a/src/dot_config/nvim/lua/debugging.lua b/src/dot_config/nvim/lua/debugging.lua index 7970531..ad8dff4 100644 --- a/src/dot_config/nvim/lua/debugging.lua +++ b/src/dot_config/nvim/lua/debugging.lua @@ -25,12 +25,7 @@ local M = {} ---------------- keymap("rs", dap.continue) -keymap("rt", function() - -- hard restart (lldb just stops when restarted) - dap.terminate() - vim.cmd.sleep("100m") - dap.continue() -end) +keymap("rt", dap.restart) keymap("rr", dap.terminate) keymap("", dap.step_into) keymap("", dap.step_over) @@ -165,8 +160,9 @@ function M.run_input(file) vim.api.nvim_buf_call(dapui.elements.console.buffer(), function() vim.b.nvimdbg_inp_file = M.dbg_dir(file) .. "/input" vim.cmd [[ - let @x = join(readfile(b:nvimdbg_inp_file), "\n") .. "\n\n" - normal G"xp + " 0x4 is eof + let @x = join(readfile(b:nvimdbg_inp_file), "\n") .. "\n\n" .. "\x04" + normal! G"xp ]] end) end @@ -238,7 +234,7 @@ dap.configurations.python = { ---------------- dap.adapters.lldb = { type = "executable", - command = "/usr/bin/lldb-vscode", + command = "/usr/bin/lldb-dap", name = "lldb" } diff --git a/src/dot_local/share/nvim/site/pack/3pp/opt/external_nvim-dap b/src/dot_local/share/nvim/site/pack/3pp/opt/external_nvim-dap index 2b428ff..0a0daa7 160000 --- a/src/dot_local/share/nvim/site/pack/3pp/opt/external_nvim-dap +++ b/src/dot_local/share/nvim/site/pack/3pp/opt/external_nvim-dap @@ -1 +1 @@ -Subproject commit 2b428ff2632e73295e9decbcf1c40d8e26213305 +Subproject commit 0a0daa796a5919a51e5e5019ffa91219c94c4fef