plugins/cmp: add cmp_ai source

This commit is contained in:
Gaetan Lepage 2024-06-14 11:06:45 +02:00 committed by Gaétan Lepage
parent 582641a639
commit 3834c4e0db
5 changed files with 138 additions and 1 deletions

View file

@ -14,7 +14,10 @@
settings.sources =
with pkgs.lib;
let
disabledSources = optional (pkgs.stdenv.hostPlatform.system == "aarch64-linux") "cmp_tabnine";
disabledSources = [
# We do not provide the required HF_API_KEY environment variable.
"cmp_ai"
] ++ optional (pkgs.stdenv.hostPlatform.system == "aarch64-linux") "cmp_tabnine";
filterFunc = sourceName: !(elem sourceName disabledSources);