mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-17 16:01:36 +02:00
139 lines
3.5 KiB
Nix
139 lines
3.5 KiB
Nix
{
|
|
empty = {
|
|
plugins.dap-view.enable = true;
|
|
};
|
|
|
|
defaults = {
|
|
plugins.dap-view = {
|
|
enable = true;
|
|
settings = {
|
|
winbar = {
|
|
show = true;
|
|
sections = [
|
|
"watches"
|
|
"scopes"
|
|
"exceptions"
|
|
"breakpoints"
|
|
"threads"
|
|
"repl"
|
|
];
|
|
default_section = "watches";
|
|
base_sections = {
|
|
breakpoints = {
|
|
keymap = "B";
|
|
label = "Breakpoints [B]";
|
|
short_label = " [B]";
|
|
action.__raw = ''
|
|
function()
|
|
views.switch_to_view("breakpoints")
|
|
end
|
|
'';
|
|
};
|
|
scopes = {
|
|
keymap = "S";
|
|
label = "Scopes [S]";
|
|
short_label = " [S]";
|
|
action.__raw = ''
|
|
function()
|
|
views.switch_to_view("scopes")
|
|
end
|
|
'';
|
|
};
|
|
exceptions = {
|
|
keymap = "E";
|
|
label = "Exceptions [E]";
|
|
short_label = " [E]";
|
|
action.__raw = ''
|
|
function()
|
|
views.switch_to_view("exceptions")
|
|
end
|
|
'';
|
|
};
|
|
watches = {
|
|
keymap = "W";
|
|
label = "Watches [W]";
|
|
short_label = " [W]";
|
|
action.__raw = ''
|
|
function()
|
|
views.switch_to_view("watches")
|
|
end
|
|
'';
|
|
};
|
|
threads = {
|
|
keymap = "T";
|
|
label = "Threads [T]";
|
|
short_label = " [T]";
|
|
action.__raw = ''
|
|
function()
|
|
views.switch_to_view("threads")
|
|
end
|
|
'';
|
|
};
|
|
repl = {
|
|
keymap = "R";
|
|
label = "REPL [R]";
|
|
short_label = " [R]";
|
|
action.__raw = ''
|
|
function()
|
|
require("dap-view.repl").show()
|
|
end
|
|
'';
|
|
};
|
|
console = {
|
|
keymap = "C";
|
|
label = "Console [C]";
|
|
short_label = " [C]";
|
|
action.__raw = ''
|
|
function()
|
|
require("dap-view.term").show()
|
|
end
|
|
'';
|
|
};
|
|
};
|
|
custom_sections = { };
|
|
controls = {
|
|
enabled = false;
|
|
position = "right";
|
|
buttons = [
|
|
"play"
|
|
"step_into"
|
|
"step_over"
|
|
"step_out"
|
|
"step_back"
|
|
"run_last"
|
|
"terminate"
|
|
"disconnect"
|
|
];
|
|
icons = {
|
|
pause = "";
|
|
play = "";
|
|
step_into = "";
|
|
step_over = "";
|
|
step_out = "";
|
|
step_back = "";
|
|
run_last = "";
|
|
terminate = "";
|
|
disconnect = "";
|
|
};
|
|
custom_buttons = { };
|
|
};
|
|
};
|
|
windows = {
|
|
height = 0.25;
|
|
position = "below";
|
|
terminal = {
|
|
width = 0.5;
|
|
position = "left";
|
|
hide = [ ];
|
|
start_hidden = false;
|
|
};
|
|
};
|
|
help = {
|
|
border = null;
|
|
};
|
|
switchbuf = "usetab";
|
|
auto_toggle = false;
|
|
};
|
|
};
|
|
};
|
|
}
|