diff --git a/tests/test-sources/plugins/by-name/dap-view/default.nix b/tests/test-sources/plugins/by-name/dap-view/default.nix index b89fede6..601ec300 100644 --- a/tests/test-sources/plugins/by-name/dap-view/default.nix +++ b/tests/test-sources/plugins/by-name/dap-view/default.nix @@ -18,52 +18,121 @@ "repl" ]; default_section = "watches"; - headers = { - breakpoints = "Breakpoints [B]"; - scopes = "Scopes [S]"; - exceptions = "Exceptions [E]"; - watches = "Watches [W]"; - threads = "Threads [T]"; - repl = "REPL [R]"; - console = "Console [C]"; + 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 = { }; }; - # 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 = { - height = 12; + height = 0.25; + position = "below"; terminal = { + width = 0.5; position = "left"; - hide = { }; + hide = [ ]; start_hidden = false; }; }; - switchbuf = "usetab;newtab"; + help = { + border = null; + }; + switchbuf = "usetab"; + auto_toggle = false; }; }; };