From c403d929a16ab243943f315efa8792c1e94b1787 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Mon, 16 Jun 2025 08:55:27 -0700 Subject: [PATCH] Refactor debugging to use 'q' for quit instead of 't' for terminate --- .config/nvim/lua/plugins/debugging.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/plugins/debugging.lua b/.config/nvim/lua/plugins/debugging.lua index 444d39e..62315bd 100644 --- a/.config/nvim/lua/plugins/debugging.lua +++ b/.config/nvim/lua/plugins/debugging.lua @@ -16,7 +16,7 @@ return { vim.keymap.set("i", "", dap.step_over) vim.keymap.set("n", "", dap.step_into) vim.keymap.set("i", "", dap.step_into) - vim.keymap.set("n", "dt", dap.terminate, { desc = "Terminate Session" }) + vim.keymap.set("n", "dq", dap.terminate, { desc = "Terminate Session" }) end, }, { @@ -50,6 +50,9 @@ return { }, }) require("dap-python").setup("uv") + require("dap-python").test_runner = "pytest" + vim.keymap.set("n", "dt", require("dap-python").test_method, { desc = "Debug Test Method" }) + local dap = require("dap") dap.listeners.after.event_initialized["dapui_config"] = function() @@ -94,7 +97,7 @@ return { }, options = { on_venv_activate_callback = function() - local python_path = require("venv-selector").python() + local python_path = require("venv-selector").python() --print("Active python: " .. python_path) vim.env.PYTHONPATH = python_path end,