13 lines
442 B
Lua
13 lines
442 B
Lua
return {
|
|
"mfussenegger/nvim-dap-python",
|
|
-- stylua: ignore
|
|
keys = {
|
|
{ "<leader>dPt", function() require('dap-python').test_method() end, desc = "Debug Method" },
|
|
{ "<leader>dPc", function() require('dap-python').test_class() end, desc = "Debug Class" },
|
|
},
|
|
config = function()
|
|
local path = require("mason-registry").get_package("debugpy"):get_install_path()
|
|
require("dap-python").setup(path .. "/venv/bin/python")
|
|
end,
|
|
}
|