nvim: python dap wip

This commit is contained in:
Vladan Popovic 2024-11-17 00:07:23 +01:00
parent 7dfe2ca68b
commit a06e856332

View file

@ -87,3 +87,34 @@ dap.configurations.rust = {
showDisassembly = "never"
}
}
-- Set up debugpy via uv
dap.adapters.python = {
type = 'server',
port = "${port}",
host = "127.0.0.1",
executable = {
command = "uvx",
args = {
"debugpy",
"--listen",
"127.0.0.1:${port}",
"--wait-for-client",
},
},
options = {
source_filetype = 'python',
},
}
dap.configurations.python = {
{
type = 'python';
request = 'launch';
name = "Launch file";
program = "${file}";
pythonPath = function()
return "${workspaceFolder}/.venv/bin/python"
end;
},
}