mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 17:28:39 +02:00
plugins/dap-python: migrate to mkNeovimPlugin
This commit is contained in:
parent
6ff7127291
commit
a70168e0fa
5 changed files with 151 additions and 109 deletions
47
tests/test-sources/plugins/by-name/dap-python/default.nix
Normal file
47
tests/test-sources/plugins/by-name/dap-python/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.dap-python.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.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-python = {
|
||||
enable = true;
|
||||
|
||||
adapterPythonPath = "python3";
|
||||
settings = {
|
||||
console = "integratedTerminal";
|
||||
includeConfigs = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue