mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/codeium-nvim: use dependencies
This commit is contained in:
parent
15919567bb
commit
d15f5e6f42
1 changed files with 24 additions and 11 deletions
|
@ -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;
|
||||||
|
});
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue