mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
38 lines
775 B
Nix
38 lines
775 B
Nix
|
{
|
||
|
empty = {
|
||
|
# We do not provide the required HF_API_KEY environment variable.
|
||
|
tests.dontRun = true;
|
||
|
|
||
|
plugins.cmp = {
|
||
|
enable = true;
|
||
|
settings.sources = [ { name = "cmp_ai"; } ];
|
||
|
};
|
||
|
};
|
||
|
|
||
|
example = {
|
||
|
# We do not provide the required HF_API_KEY environment variable.
|
||
|
tests.dontRun = true;
|
||
|
|
||
|
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;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|