mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-09 16:54:36 +02:00
plugins/dap-ui: migrate to mkNeovimPlugin
This commit is contained in:
parent
a70168e0fa
commit
9eae5db29a
5 changed files with 253 additions and 172 deletions
99
tests/test-sources/plugins/by-name/dap-ui/default.nix
Normal file
99
tests/test-sources/plugins/by-name/dap-ui/default.nix
Normal file
|
@ -0,0 +1,99 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.dap-ui.enable = true;
|
||||
};
|
||||
|
||||
default = {
|
||||
plugins.dap-ui = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
controls = {
|
||||
element = "repl";
|
||||
enabled = true;
|
||||
icons = {
|
||||
disconnect = "";
|
||||
pause = "";
|
||||
play = "";
|
||||
run_last = "";
|
||||
step_back = "";
|
||||
step_into = "";
|
||||
step_out = "";
|
||||
step_over = "";
|
||||
terminate = "";
|
||||
};
|
||||
};
|
||||
element_mappings = { };
|
||||
expand_lines = true;
|
||||
floating = {
|
||||
border = "single";
|
||||
mappings = {
|
||||
close = [
|
||||
"q"
|
||||
"<Esc>"
|
||||
];
|
||||
};
|
||||
};
|
||||
force_buffers = true;
|
||||
icons = {
|
||||
collapsed = "";
|
||||
current_frame = "";
|
||||
expanded = "";
|
||||
};
|
||||
layouts = [
|
||||
{
|
||||
elements = [
|
||||
{
|
||||
id = "scopes";
|
||||
size = 0.25;
|
||||
}
|
||||
{
|
||||
id = "breakpoints";
|
||||
size = 0.25;
|
||||
}
|
||||
{
|
||||
id = "stacks";
|
||||
size = 0.25;
|
||||
}
|
||||
{
|
||||
id = "watches";
|
||||
size = 0.25;
|
||||
}
|
||||
];
|
||||
position = "left";
|
||||
size = 40;
|
||||
}
|
||||
{
|
||||
elements = [
|
||||
{
|
||||
id = "repl";
|
||||
size = 0.5;
|
||||
}
|
||||
{
|
||||
id = "console";
|
||||
size = 0.5;
|
||||
}
|
||||
];
|
||||
position = "bottom";
|
||||
size = 10;
|
||||
}
|
||||
];
|
||||
mappings = {
|
||||
edit = "e";
|
||||
expand = [
|
||||
"<CR>"
|
||||
"<2-LeftMouse>"
|
||||
];
|
||||
open = "o";
|
||||
remove = "d";
|
||||
repl = "r";
|
||||
toggle = "t";
|
||||
};
|
||||
render = {
|
||||
indent = 1;
|
||||
max_value_lines = 100;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,97 +0,0 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.dap.extensions.dap-ui.enable = true;
|
||||
};
|
||||
|
||||
default = {
|
||||
plugins.dap.extensions.dap-ui = {
|
||||
enable = true;
|
||||
|
||||
controls = {
|
||||
element = "repl";
|
||||
enabled = true;
|
||||
icons = {
|
||||
disconnect = "";
|
||||
pause = "";
|
||||
play = "";
|
||||
run_last = "";
|
||||
step_back = "";
|
||||
step_into = "";
|
||||
step_out = "";
|
||||
step_over = "";
|
||||
terminate = "";
|
||||
};
|
||||
};
|
||||
elementMappings = { };
|
||||
expandLines = true;
|
||||
floating = {
|
||||
border = "single";
|
||||
mappings = {
|
||||
close = [
|
||||
"q"
|
||||
"<Esc>"
|
||||
];
|
||||
};
|
||||
};
|
||||
forceBuffers = true;
|
||||
icons = {
|
||||
collapsed = "";
|
||||
current_frame = "";
|
||||
expanded = "";
|
||||
};
|
||||
layouts = [
|
||||
{
|
||||
elements = [
|
||||
{
|
||||
id = "scopes";
|
||||
size = 0.25;
|
||||
}
|
||||
{
|
||||
id = "breakpoints";
|
||||
size = 0.25;
|
||||
}
|
||||
{
|
||||
id = "stacks";
|
||||
size = 0.25;
|
||||
}
|
||||
{
|
||||
id = "watches";
|
||||
size = 0.25;
|
||||
}
|
||||
];
|
||||
position = "left";
|
||||
size = 40;
|
||||
}
|
||||
{
|
||||
elements = [
|
||||
{
|
||||
id = "repl";
|
||||
size = 0.5;
|
||||
}
|
||||
{
|
||||
id = "console";
|
||||
size = 0.5;
|
||||
}
|
||||
];
|
||||
position = "bottom";
|
||||
size = 10;
|
||||
}
|
||||
];
|
||||
mappings = {
|
||||
edit = "e";
|
||||
expand = [
|
||||
"<CR>"
|
||||
"<2-LeftMouse>"
|
||||
];
|
||||
open = "o";
|
||||
remove = "d";
|
||||
repl = "r";
|
||||
toggle = "t";
|
||||
};
|
||||
render = {
|
||||
indent = 1;
|
||||
maxValueLines = 100;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue