plugins/cmp-ai: move to by-name

This commit is contained in:
Gaetan Lepage 2024-12-18 18:55:45 +01:00
parent f1addaaddf
commit a61193abcc
4 changed files with 89 additions and 100 deletions

View file

@ -1,37 +0,0 @@
{
empty = {
# We do not provide the required HF_API_KEY environment variable.
test.runNvim = false;
plugins.cmp = {
enable = true;
settings.sources = [ { name = "cmp_ai"; } ];
};
};
example = {
# We do not provide the required HF_API_KEY environment variable.
test.runNvim = false;
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;
};
};
};
};
}