Refactor debugging to use 'q' for quit instead of 't' for terminate
This commit is contained in:
parent
b9d65bd05a
commit
c403d929a1
1 changed files with 5 additions and 2 deletions
|
@ -16,7 +16,7 @@ return {
|
||||||
vim.keymap.set("i", "<F10>", dap.step_over)
|
vim.keymap.set("i", "<F10>", dap.step_over)
|
||||||
vim.keymap.set("n", "<F11>", dap.step_into)
|
vim.keymap.set("n", "<F11>", dap.step_into)
|
||||||
vim.keymap.set("i", "<F11>", dap.step_into)
|
vim.keymap.set("i", "<F11>", dap.step_into)
|
||||||
vim.keymap.set("n", "<Leader>dt", dap.terminate, { desc = "Terminate Session" })
|
vim.keymap.set("n", "<Leader>dq", dap.terminate, { desc = "Terminate Session" })
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -50,6 +50,9 @@ return {
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
require("dap-python").setup("uv")
|
require("dap-python").setup("uv")
|
||||||
|
require("dap-python").test_runner = "pytest"
|
||||||
|
vim.keymap.set("n", "<Leader>dt", require("dap-python").test_method, { desc = "Debug Test Method" })
|
||||||
|
|
||||||
local dap = require("dap")
|
local dap = require("dap")
|
||||||
|
|
||||||
dap.listeners.after.event_initialized["dapui_config"] = function()
|
dap.listeners.after.event_initialized["dapui_config"] = function()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue