install debugger
This commit is contained in:
parent
7dd9c63f32
commit
a6f234cc57
5 changed files with 225 additions and 0 deletions
53
config/plugins/dap/dap-python.nix
Normal file
53
config/plugins/dap/dap-python.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{ ... }: {
|
||||
plugins.dap-python = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = ["n" "v"];
|
||||
key = "<leader>dP";
|
||||
action = "<NOP>";
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "+python";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = ["n"];
|
||||
key = "<leader>dPm";
|
||||
action = {
|
||||
__raw = "require('dap-python').test_method";
|
||||
};
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Test method";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = ["n"];
|
||||
key = "<leader>dPc";
|
||||
action = {
|
||||
__raw = "require('dap-python').test_class";
|
||||
};
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Test Class";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = ["v"];
|
||||
key = "<leader>dPs";
|
||||
action = {
|
||||
__raw = "require('dap-python').debug_selection";
|
||||
};
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Debug selection";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue