plugins/codeium-nvim: use dependencies

This commit is contained in:
Gaetan Lepage 2025-04-11 15:44:57 +02:00
parent 15919567bb
commit d15f5e6f42

View file

@ -12,6 +12,12 @@ lib.nixvim.plugins.mkNeovimPlugin {
khaneliman khaneliman
]; ];
description = ''
By default, enabling this plugin will also install the `curl`, `gzip`, `coreutils`, `util-linux` and `codeium` packages (via the `dependencies.*.enable` options`).
You are free to configure `dependencies.*.enable` and `dependencies.*.package` to disable or customize this behavior, respectively.
'';
# TODO: added 2024-09-03 remove after 24.11 # TODO: added 2024-09-03 remove after 24.11
inherit (import ./deprecations.nix) deprecateExtraOptions optionsRenamedToSettings; inherit (import ./deprecations.nix) deprecateExtraOptions optionsRenamedToSettings;
@ -20,15 +26,22 @@ lib.nixvim.plugins.mkNeovimPlugin {
{ cmpSourcePlugins.codeium = "codeium-nvim"; } { cmpSourcePlugins.codeium = "codeium-nvim"; }
]; ];
settingsExample = lib.literalExpression '' settingsExample = {
{ enable_chat = true;
enable_chat = true; };
tools = {
curl = lib.getExe pkgs.curl; extraConfig = {
gzip = lib.getExe pkgs.gzip; dependencies =
uname = lib.getExe' pkgs.coreutils "uname"; lib.genAttrs
uuidgen = lib.getExe' pkgs.util-linux "uuidgen"; [
}; "curl"
} "gzip"
''; "coreutils"
"util-linux"
"codeium"
]
(_: {
enable = lib.mkDefault true;
});
};
} }