Skip to content

Commit b0fff4c

Browse files
committed
tests/plugins/dap-view: update defaults
1 parent 0275e46 commit b0fff4c

File tree

1 file changed

+35
-20
lines changed

1 file changed

+35
-20
lines changed

tests/test-sources/plugins/by-name/dap-view/default.nix

Lines changed: 35 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
short_label = " [B]";
2626
action.__raw = ''
2727
function()
28-
views.switch_to_view("breakpoints")
28+
require("dap-view.views").switch_to_view("breakpoints")
2929
end
3030
'';
3131
};
@@ -35,7 +35,7 @@
3535
short_label = "󰂥 [S]";
3636
action.__raw = ''
3737
function()
38-
views.switch_to_view("scopes")
38+
require("dap-view.views").switch_to_view("scopes")
3939
end
4040
'';
4141
};
@@ -45,7 +45,7 @@
4545
short_label = "󰢃 [E]";
4646
action.__raw = ''
4747
function()
48-
views.switch_to_view("exceptions")
48+
require("dap-view.views").switch_to_view("exceptions")
4949
end
5050
'';
5151
};
@@ -55,7 +55,7 @@
5555
short_label = "󰛐 [W]";
5656
action.__raw = ''
5757
function()
58-
views.switch_to_view("watches")
58+
require("dap-view.views").switch_to_view("watches")
5959
end
6060
'';
6161
};
@@ -65,7 +65,7 @@
6565
short_label = "󱉯 [T]";
6666
action.__raw = ''
6767
function()
68-
views.switch_to_view("threads")
68+
require("dap-view.views").switch_to_view("threads")
6969
end
7070
'';
7171
};
@@ -79,18 +79,28 @@
7979
end
8080
'';
8181
};
82+
sessions = {
83+
keymap = "K";
84+
label = "Sessions [K]";
85+
short_label = " [K]";
86+
action.__raw = ''
87+
function()
88+
require("dap-view.views").switch_to_view("sessions")
89+
end
90+
'';
91+
};
8292
console = {
8393
keymap = "C";
8494
label = "Console [C]";
8595
short_label = "󰆍 [C]";
8696
action.__raw = ''
8797
function()
88-
require("dap-view.term").show()
98+
require("dap-view.term").show()
8999
end
90100
'';
91101
};
92102
};
93-
custom_sections = { };
103+
custom_sections = [ ];
94104
controls = {
95105
enabled = false;
96106
position = "right";
@@ -104,18 +114,7 @@
104114
"terminate"
105115
"disconnect"
106116
];
107-
icons = {
108-
pause = "";
109-
play = "";
110-
step_into = "";
111-
step_over = "";
112-
step_out = "";
113-
step_back = "";
114-
run_last = "";
115-
terminate = "";
116-
disconnect = "";
117-
};
118-
custom_buttons = { };
117+
custom_buttons = [ ];
119118
};
120119
};
121120
windows = {
@@ -124,15 +123,31 @@
124123
terminal = {
125124
width = 0.5;
126125
position = "left";
127-
hide = [ ];
126+
hide = { };
128127
start_hidden = false;
129128
};
130129
};
130+
icons = {
131+
disabled = "";
132+
disconnect = "";
133+
enabled = "";
134+
filter = "󰈲";
135+
negate = " ";
136+
pause = "";
137+
play = "";
138+
run_last = "";
139+
step_back = "";
140+
step_into = "";
141+
step_out = "";
142+
step_over = "";
143+
terminate = "";
144+
};
131145
help = {
132146
border = null;
133147
};
134148
switchbuf = "usetab";
135149
auto_toggle = false;
150+
follow_tab = false;
136151
};
137152
};
138153
};

0 commit comments

Comments
 (0)