mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-27 19:18:57 +02:00
plugins/dap: move to by-name
This commit is contained in:
parent
52f125679f
commit
672b9e1ceb
12 changed files with 0 additions and 2 deletions
45
tests/test-sources/plugins/by-name/dap/dap-python.nix
Normal file
45
tests/test-sources/plugins/by-name/dap/dap-python.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue