nix-community.nixvim/tests/test-sources/plugins/cmp/cmp-ai.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
775 B
Nix
Raw Normal View History

2024-06-14 11:06:45 +02:00
{
empty = {
# We do not provide the required HF_API_KEY environment variable.
test.runNvim = false;
2024-06-14 11:06:45 +02:00
plugins.cmp = {
enable = true;
settings.sources = [ { name = "cmp_ai"; } ];
};
};
example = {
# We do not provide the required HF_API_KEY environment variable.
test.runNvim = false;
2024-06-14 11:06:45 +02:00
plugins = {
cmp = {
enable = true;
settings.sources = [ { name = "cmp_ai"; } ];
};
cmp-ai.settings = {
max_lines = 1000;
provider = "HF";
notify = true;
notify_callback = ''
function(msg)
vim.notify(msg)
end
'';
run_on_every_keystroke = true;
ignored_file_types = {
lua = true;
};
};
};
};
}