tests/plugins/dap-view: update default config

This commit is contained in:
Gaetan Lepage 2025-07-31 15:45:56 +02:00 committed by nixvim-ci[bot]
parent 56500e62b6
commit e76ebb7819

View file

@ -18,52 +18,121 @@
"repl" "repl"
]; ];
default_section = "watches"; default_section = "watches";
headers = { base_sections = {
breakpoints = "Breakpoints [B]"; breakpoints = {
scopes = "Scopes [S]"; keymap = "B";
exceptions = "Exceptions [E]"; label = "Breakpoints [B]";
watches = "Watches [W]"; short_label = " [B]";
threads = "Threads [T]"; action.__raw = ''
repl = "REPL [R]"; function()
console = "Console [C]"; 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 = { };
}; };
# TODO: Enable after plugin update
# 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 = { windows = {
height = 12; height = 0.25;
position = "below";
terminal = { terminal = {
width = 0.5;
position = "left"; position = "left";
hide = { }; hide = [ ];
start_hidden = false; start_hidden = false;
}; };
}; };
switchbuf = "usetab;newtab"; help = {
border = null;
};
switchbuf = "usetab";
auto_toggle = false;
}; };
}; };
}; };