plugins/dap: init + extensions + tests (#455)

This commit is contained in:
Wolbyte 2023-07-03 22:34:46 +03:30 committed by GitHub
parent 993cf528b7
commit d025d14f4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 967 additions and 0 deletions

View file

@ -0,0 +1,45 @@
{
empty = {
plugins.dap.extensions.dap-python.enable = true;
};
example = {
plugins.dap.extensions.dap-python = {
enable = true;
customConfigurations = [
{
type = "python";
request = "launch";
name = "My custom launch configuration";
program = "$\{file}";
# ... more options; see https://github.com/microsoft/debugpy/wiki/Debug-configuration-settings
}
];
resolvePython = ''
function()
return "/absolute/path/to/python"
end
'';
testRunner = "customTestRunner";
testRunners = {
customTestRunner = ''
function(classname, methodname, opts)
local args = {classname, methodname}
return 'modulename', args
end
'';
};
};
};
default = {
plugins.dap.extensions.dap-python = {
enable = true;
console = "integratedTerminal";
includeConfigs = true;
adapterPythonPath = "python3";
};
};
}