You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
634 B
Lua
29 lines
634 B
Lua
-- python-debugging.lua: Debugging Python code with DAP
|
|
--
|
|
|
|
return {
|
|
'mfussenegger/nvim-dap-python',
|
|
keys = {
|
|
{
|
|
'<leader>dPt',
|
|
function()
|
|
require('dap-python').test_method()
|
|
end,
|
|
desc = 'Debug Method',
|
|
ft = 'python',
|
|
},
|
|
{
|
|
'<leader>dPc',
|
|
function()
|
|
require('dap-python').test_class()
|
|
end,
|
|
desc = 'Debug Class',
|
|
ft = 'python',
|
|
},
|
|
},
|
|
config = function()
|
|
local path = require('mason-registry').get_package('debugpy'):get_install_path()
|
|
require('dap-python').setup(os.getenv 'PYENV_ROOT' .. '/versions/3.11.9/bin/python')
|
|
end,
|
|
}
|