Skip to content

Commit 1bd9109

Browse files
saygo-pngMattSturgeon
authored andcommitted
tests/lspsaga: update test
Signed-off-by: saygo-png <[email protected]>
1 parent 1c999d4 commit 1bd9109

File tree

1 file changed

+165
-151
lines changed

1 file changed

+165
-151
lines changed

tests/test-sources/plugins/by-name/lspsaga/default.nix

Lines changed: 165 additions & 151 deletions
Original file line numberDiff line numberDiff line change
@@ -8,167 +8,181 @@
88
plugins.web-devicons.enable = true;
99
plugins.lspsaga = {
1010
enable = true;
11-
12-
ui = {
13-
border = "single";
14-
devicon = true;
15-
title = true;
16-
expand = "⊞";
17-
collapse = "⊟";
18-
codeAction = "💡";
19-
actionfix = "";
20-
lines = [
21-
"┗"
22-
"┣"
23-
"┃"
24-
"━"
25-
"┏"
26-
];
27-
kind = { };
28-
impSign = "󰳛 ";
29-
};
30-
hover = {
31-
maxWidth = 0.9;
32-
maxHeight = 0.8;
33-
openLink = "gx";
34-
openCmd = "!chrome";
35-
};
36-
diagnostic = {
37-
showCodeAction = true;
38-
showLayout = "float";
39-
showNormalHeight = 10;
40-
jumpNumShortcut = true;
41-
maxWidth = 0.8;
42-
maxHeight = 0.6;
43-
maxShowWidth = 0.9;
44-
maxShowHeight = 0.6;
45-
textHlFollow = true;
46-
borderFollow = true;
47-
extendRelatedInformation = false;
48-
diagnosticOnlyCurrent = false;
49-
keys = {
50-
execAction = "o";
51-
quit = "q";
52-
toggleOrJump = "<CR>";
53-
quitInShow = [
54-
"q"
55-
"<ESC>"
11+
settings = {
12+
ui = {
13+
border = "single";
14+
devicon = true;
15+
title = true;
16+
expand = "⊞";
17+
collapse = "⊟";
18+
code_action = "💡";
19+
actionfix = "";
20+
lines = [
21+
"┗"
22+
"┣"
23+
"┃"
24+
"━"
25+
"┏"
5626
];
27+
kind = { };
28+
imp_sign = "󰳛 ";
5729
};
58-
};
59-
codeAction = {
60-
numShortcut = true;
61-
showServerName = false;
62-
extendGitSigns = false;
63-
onlyInCursor = true;
64-
keys = {
65-
quit = "q";
66-
exec = "<CR>";
30+
hover = {
31+
max_width = 0.9;
32+
max_height = 0.8;
33+
open_link = "gx";
34+
open_cmd = "!chrome";
6735
};
68-
};
69-
lightbulb = {
70-
enable = true;
71-
sign = true;
72-
debounce = 10;
73-
signPriority = 40;
74-
virtualText = true;
75-
};
76-
scrollPreview = {
77-
scrollDown = "<C-f>";
78-
scrollUp = "<C-b>";
79-
};
80-
finder = {
81-
maxHeight = 0.5;
82-
leftWidth = 0.3;
83-
rightWidth = 0.3;
84-
methods = {
85-
tyd = "textDocument/typeDefinition";
36+
diagnostic = {
37+
show_code_action = true;
38+
show_layout = "float";
39+
show_normal_height = 10;
40+
jump_num_shortcut = true;
41+
max_width = 0.8;
42+
max_height = 0.6;
43+
max_show_width = 0.9;
44+
max_show_height = 0.6;
45+
text_hl_follow = true;
46+
border_follow = true;
47+
extend_related_information = false;
48+
diagnostic_only_current = false;
49+
keys = {
50+
exec_action = "o";
51+
quit = "q";
52+
toggle_or_jump = "<CR>";
53+
quit_in_show = [
54+
"q"
55+
"<ESC>"
56+
];
57+
};
8658
};
87-
default = "ref+imp";
88-
layout = "float";
89-
silent = false;
90-
filter = { };
91-
keys = {
92-
shuttle = "[w";
93-
toggleOrOpen = "o";
94-
vsplit = "s";
95-
split = "i";
96-
tabe = "t";
97-
tabnew = "r";
98-
quit = "q";
99-
close = "<C-c>k";
59+
code_action = {
60+
num_shortcut = true;
61+
show_server_name = false;
62+
extend_git_signs = false;
63+
only_in_cursor = true;
64+
keys = {
65+
quit = "q";
66+
exec = "<CR>";
67+
};
10068
};
101-
};
102-
definition = {
103-
width = 0.6;
104-
height = 0.5;
105-
keys = {
106-
edit = "<C-c>o";
107-
vsplit = "<C-c>v";
108-
split = "<C-c>i";
109-
tabe = "<C-c>t";
110-
quit = "q";
111-
close = "<C-c>k";
69+
lightbulb = {
70+
enable = true;
71+
sign = true;
72+
debounce = 10;
73+
sign_priority = 40;
74+
virtual_text = true;
11275
};
113-
};
114-
rename = {
115-
inSelect = true;
116-
autoSave = false;
117-
projectMaxWidth = 0.5;
118-
projectMaxHeight = 0.5;
119-
keys = {
120-
quit = "<C-k>";
121-
exec = "<CR>";
122-
select = "x";
76+
scroll_preview = {
77+
scroll_down = "<C-f>";
78+
scroll_up = "<C-b>";
12379
};
124-
};
125-
symbolInWinbar = {
126-
enable = true;
127-
separator = " › ";
128-
hideKeyword = false;
129-
showFile = true;
130-
folderLevel = 1;
131-
colorMode = true;
132-
delay = 300;
133-
};
134-
outline = {
135-
winPosition = "right";
136-
winWidth = 30;
137-
autoPreview = true;
138-
detail = true;
139-
autoClose = true;
140-
closeAfterJump = false;
141-
layout = "normal";
142-
maxHeight = 0.5;
143-
leftWidth = 0.3;
144-
keys = {
145-
toggleOrJump = "o";
146-
quit = "q";
147-
jump = "e";
80+
finder = {
81+
max_height = 0.5;
82+
left_width = 0.3;
83+
right_width = 0.3;
84+
methods = {
85+
tyd = "textDocument/typeDefinition";
86+
};
87+
default = "ref+imp";
88+
layout = "float";
89+
silent = false;
90+
filter = { };
91+
keys = {
92+
shuttle = "[w";
93+
toggle_or_open = "o";
94+
vsplit = "s";
95+
split = "i";
96+
tabe = "t";
97+
tabnew = "r";
98+
quit = "q";
99+
close = "<C-c>k";
100+
};
148101
};
149-
};
150-
callhierarchy = {
151-
layout = "float";
152-
keys = {
153-
edit = "e";
154-
vsplit = "s";
155-
split = "i";
156-
tabe = "t";
157-
close = "<C-c>k";
158-
quit = "q";
159-
shuttle = "[w";
160-
toggleOrReq = "u";
102+
definition = {
103+
width = 0.6;
104+
height = 0.5;
105+
keys = {
106+
edit = "<C-c>o";
107+
vsplit = "<C-c>v";
108+
split = "<C-c>i";
109+
tabe = "<C-c>t";
110+
quit = "q";
111+
close = "<C-c>k";
112+
};
113+
};
114+
rename = {
115+
in_select = true;
116+
auto_save = false;
117+
project_max_width = 0.5;
118+
project_max_height = 0.5;
119+
keys = {
120+
quit = "<C-k>";
121+
exec = "<CR>";
122+
select = "x";
123+
};
124+
};
125+
symbol_in_winbar = {
126+
enable = true;
127+
separator = " › ";
128+
hide_keyword = false;
129+
show_file = true;
130+
folder_level = 1;
131+
color_mode = true;
132+
delay = 300;
133+
};
134+
outline = {
135+
win_position = "right";
136+
win_width = 30;
137+
auto_preview = true;
138+
detail = true;
139+
auto_close = true;
140+
close_after_jump = false;
141+
layout = "normal";
142+
max_height = 0.5;
143+
left_width = 0.3;
144+
keys = {
145+
toggle_or_jump = "o";
146+
quit = "q";
147+
jump = "e";
148+
};
149+
};
150+
callhierarchy = {
151+
layout = "float";
152+
keys = {
153+
edit = "e";
154+
vsplit = "s";
155+
split = "i";
156+
tabe = "t";
157+
close = "<C-c>k";
158+
quit = "q";
159+
shuttle = "[w";
160+
toggle_or_req = "u";
161+
};
162+
};
163+
implement = {
164+
enable = true;
165+
sign = true;
166+
virtual_text = true;
167+
priority = 100;
168+
};
169+
beacon = {
170+
enable = true;
171+
frequency = 7;
161172
};
162173
};
163-
implement = {
164-
enable = true;
165-
sign = true;
166-
virtualText = true;
167-
priority = 100;
168-
};
169-
beacon = {
170-
enable = true;
171-
frequency = 7;
174+
};
175+
};
176+
177+
example = {
178+
plugins.web-devicons.enable = true;
179+
plugins.lspsaga = {
180+
enable = true;
181+
settings = {
182+
ui.border = "single";
183+
symbol_in_winbar.enable = true;
184+
implement.enable = true;
185+
lightbulb.enable = false;
172186
};
173187
};
174188
};

0 commit comments

Comments
 (0)