Skip to content

Commit 29c208e

Browse files
committed
tests/cmp: various fixes
1 parent 513e154 commit 29c208e

File tree

8 files changed

+41
-27
lines changed

8 files changed

+41
-27
lines changed

tests/test-sources/plugins/by-name/cmp-ai/default.nix

+5-7
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
# We do not provide the required HF_API_KEY environment variable.
44
test.runNvim = false;
55

6-
plugins.cmp = {
7-
enable = true;
8-
settings.sources = [ { name = "cmp_ai"; } ];
6+
plugins = {
7+
cmp.enable = true;
8+
cmp-ai.enable = true;
99
};
1010
};
1111

@@ -14,10 +14,8 @@
1414
test.runNvim = false;
1515

1616
plugins = {
17-
cmp = {
18-
enable = true;
19-
settings.sources = [ { name = "cmp_ai"; } ];
20-
};
17+
cmp.enable = true;
18+
cmp-ai.enable = true;
2119
cmp-ai.settings = {
2220
max_lines = 1000;
2321
provider = "HF";

tests/test-sources/plugins/by-name/cmp-git/default.nix

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
{
22
defaults = {
33
plugins = {
4-
cmp = {
5-
enable = true;
6-
settings.sources = [ { name = "git"; } ];
7-
};
4+
cmp.enable = true;
85

6+
cmp-git.enable = true;
97
cmp-git.settings = {
108
filetypes = [
119
"gitcommit"
@@ -140,11 +138,9 @@
140138

141139
example = {
142140
plugins = {
143-
cmp = {
144-
enable = true;
145-
settings.sources = [ { name = "git"; } ];
146-
};
141+
cmp.enable = true;
147142

143+
cmp-git.enable = true;
148144
cmp-git.settings = {
149145
remotes = [
150146
"upstream"

tests/test-sources/plugins/by-name/cmp-tabby/default.nix

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{
22
empty = {
3-
plugins.cmp = {
4-
enable = true;
5-
settings.sources = [ { name = "cmp_tabby"; } ];
6-
};
3+
plugins.cmp.enable = true;
4+
plugins.cmp-tabby.enable = true;
75
};
86

97
defaults = {
108
plugins = {
119
cmp = {
1210
enable = true;
13-
settings.sources = [ { name = "cmp_tabby"; } ];
1411
};
12+
cmp-tabby.enable = true;
1513
cmp-tabby.settings = {
1614
host = "http://localhost:5000";
1715
max_lines = 100;

tests/test-sources/plugins/by-name/codeium-nvim/default.nix

+7-4
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@
22
empty = {
33
plugins.codeium-nvim = {
44
enable = true;
5+
cmp.enable = false;
56
settings.enable_cmp_source = false;
67
};
78
};
89

910
enabled-by-cmp = {
10-
plugins.cmp = {
11-
enable = true;
12-
13-
settings.sources = [ { name = "codeium"; } ];
11+
plugins = {
12+
cmp.enable = true;
13+
codeium-nvim = {
14+
enable = true;
15+
settings.enable_cmp_source = false;
16+
};
1417
};
1518
};
1619

Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
{
22
empty = {
3-
plugins.copilot-cmp.enable = true;
3+
plugins.copilot-cmp = {
4+
enable = true;
5+
cmp.enable = false;
6+
};
47
};
58

69
defaults = {
7-
plugins.copilot-cmp = {
8-
enable = true;
10+
plugins = {
11+
cmp.enable = true;
12+
copilot-cmp.enable = true;
913
};
1014
};
1115
}

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

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
empty = {
33
plugins.crates.enable = true;
4+
# Explicit disable to suppress warnings
5+
plugins.cmp.enable = false;
46
};
57

68
defaults = {
@@ -202,6 +204,8 @@
202204
};
203205
};
204206
};
207+
# Explicit disable to suppress warnings
208+
plugins.cmp.enable = false;
205209
};
206210

207211
example = {
@@ -214,5 +218,7 @@
214218
autoupdate = true;
215219
};
216220
};
221+
# Explicit disable to suppress warnings
222+
plugins.cmp.enable = false;
217223
};
218224
}

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

+3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
22
empty = {
33
plugins.papis.enable = true;
4+
plugins.papis.cmp.enable = false;
45
};
56

67
defaults = {
8+
plugins.cmp.enable = true;
79
plugins.papis = {
810
enable = true;
911

@@ -328,6 +330,7 @@
328330
};
329331

330332
example = {
333+
plugins.cmp.enable = true;
331334
plugins.papis = {
332335
enable = true;
333336

Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{
22
empty = {
33
plugins.vim-dadbod-completion.enable = true;
4+
plugins.vim-dadbod-completion.cmp.enable = false;
5+
};
6+
7+
with-cmp = {
8+
plugins.cmp.enable = true;
9+
plugins.vim-dadbod-completion.enable = true;
410
};
511
}

0 commit comments

Comments
 (0)