Skip to content

Commit de50390

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

File tree

1 file changed

+36
-20
lines changed

1 file changed

+36
-20
lines changed

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

Lines changed: 36 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
defaults = {
77
plugins.dap-view = {
88
enable = true;
9+
910
settings = {
1011
winbar = {
1112
show = true;
@@ -25,7 +26,7 @@
2526
short_label = " [B]";
2627
action.__raw = ''
2728
function()
28-
views.switch_to_view("breakpoints")
29+
require("dap-view.views").switch_to_view("breakpoints")
2930
end
3031
'';
3132
};
@@ -35,7 +36,7 @@
3536
short_label = "󰂥 [S]";
3637
action.__raw = ''
3738
function()
38-
views.switch_to_view("scopes")
39+
require("dap-view.views").switch_to_view("scopes")
3940
end
4041
'';
4142
};
@@ -45,7 +46,7 @@
4546
short_label = "󰢃 [E]";
4647
action.__raw = ''
4748
function()
48-
views.switch_to_view("exceptions")
49+
require("dap-view.views").switch_to_view("exceptions")
4950
end
5051
'';
5152
};
@@ -55,7 +56,7 @@
5556
short_label = "󰛐 [W]";
5657
action.__raw = ''
5758
function()
58-
views.switch_to_view("watches")
59+
require("dap-view.views").switch_to_view("watches")
5960
end
6061
'';
6162
};
@@ -65,7 +66,7 @@
6566
short_label = "󱉯 [T]";
6667
action.__raw = ''
6768
function()
68-
views.switch_to_view("threads")
69+
require("dap-view.views").switch_to_view("threads")
6970
end
7071
'';
7172
};
@@ -79,18 +80,28 @@
7980
end
8081
'';
8182
};
83+
sessions = {
84+
keymap = "K";
85+
label = "Sessions [K]";
86+
short_label = " [K]";
87+
action.__raw = ''
88+
function()
89+
require("dap-view.views").switch_to_view("sessions")
90+
end
91+
'';
92+
};
8293
console = {
8394
keymap = "C";
8495
label = "Console [C]";
8596
short_label = "󰆍 [C]";
8697
action.__raw = ''
8798
function()
88-
require("dap-view.term").show()
99+
require("dap-view.term").show()
89100
end
90101
'';
91102
};
92103
};
93-
custom_sections = { };
104+
custom_sections = [ ];
94105
controls = {
95106
enabled = false;
96107
position = "right";
@@ -104,18 +115,7 @@
104115
"terminate"
105116
"disconnect"
106117
];
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 = { };
118+
custom_buttons = [ ];
119119
};
120120
};
121121
windows = {
@@ -124,15 +124,31 @@
124124
terminal = {
125125
width = 0.5;
126126
position = "left";
127-
hide = [ ];
127+
hide = { };
128128
start_hidden = false;
129129
};
130130
};
131+
icons = {
132+
disabled = "";
133+
disconnect = "";
134+
enabled = "";
135+
filter = "󰈲";
136+
negate = " ";
137+
pause = "";
138+
play = "";
139+
run_last = "";
140+
step_back = "";
141+
step_into = "";
142+
step_out = "";
143+
step_over = "";
144+
terminate = "";
145+
};
131146
help = {
132147
border = null;
133148
};
134149
switchbuf = "usetab";
135150
auto_toggle = false;
151+
follow_tab = false;
136152
};
137153
};
138154
};

0 commit comments

Comments
 (0)