Add debugger support to neovim
This commit is contained in:
parent
a10d48d007
commit
ee60c4e8f1
1 changed files with 72 additions and 1 deletions
|
|
@ -37,6 +37,77 @@
|
||||||
indent.enable = true;
|
indent.enable = true;
|
||||||
};
|
};
|
||||||
harpoon.enable = true;
|
harpoon.enable = true;
|
||||||
|
dap.enable = true;
|
||||||
|
dap-virtual-text.enable = true;
|
||||||
|
dap-view = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
winbar = {
|
||||||
|
default_section = "scopes";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
dap-python.enable = true;
|
||||||
|
hydra = {
|
||||||
|
enable = true;
|
||||||
|
hydras = [
|
||||||
|
{
|
||||||
|
body = "<leader>d";
|
||||||
|
config = {
|
||||||
|
color = "pink";
|
||||||
|
hint = {
|
||||||
|
hide_on_load = true;
|
||||||
|
};
|
||||||
|
on_enter = ''
|
||||||
|
function()
|
||||||
|
require("dap-view").open()
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
on_exit = ''
|
||||||
|
function()
|
||||||
|
require("dap-view").close()
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
heads = [
|
||||||
|
[
|
||||||
|
"o"
|
||||||
|
""
|
||||||
|
]
|
||||||
|
[
|
||||||
|
"c"
|
||||||
|
"<cmd>DapContinue<CR>"
|
||||||
|
]
|
||||||
|
[
|
||||||
|
"b"
|
||||||
|
"<cmd>DapToggleBreakpoint<CR>"
|
||||||
|
]
|
||||||
|
[
|
||||||
|
"n"
|
||||||
|
"<cmd>DapStepOver<CR>"
|
||||||
|
]
|
||||||
|
[
|
||||||
|
"i"
|
||||||
|
"<cmd>DapStepInto<CR>"
|
||||||
|
]
|
||||||
|
[
|
||||||
|
"x"
|
||||||
|
"<cmd>DapDisconnect<CR>"
|
||||||
|
]
|
||||||
|
[
|
||||||
|
"t"
|
||||||
|
{
|
||||||
|
__raw = ''
|
||||||
|
function()
|
||||||
|
test_method()
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
]
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
keymaps = [
|
keymaps = [
|
||||||
{
|
{
|
||||||
|
|
@ -77,7 +148,7 @@
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
action = "<cmd>lua vim.diagnostic.setqflist()<CR>";
|
action = "<cmd>lua vim.diagnostic.setqflist()<CR>";
|
||||||
key = "<leader>d";
|
key = "<leader>q";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
action = "<cmd>lua require('harpoon'):list():add()<CR>";
|
action = "<cmd>lua require('harpoon'):list():add()<CR>";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue