2024-01-01 21:50:06 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2024-12-22 09:58:27 +00:00
|
|
|
lib.nixvim.plugins.mkNeovimPlugin {
|
2024-09-03 21:23:27 -05:00
|
|
|
name = "codeium-nvim";
|
2024-12-13 08:27:14 -06:00
|
|
|
packPathName = "codeium.nvim";
|
2024-12-13 08:28:39 -06:00
|
|
|
moduleName = "codeium";
|
2024-09-03 21:23:27 -05:00
|
|
|
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
GaetanLepage
|
|
|
|
khaneliman
|
|
|
|
];
|
|
|
|
|
2025-04-11 15:44:57 +02:00
|
|
|
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.
|
|
|
|
'';
|
|
|
|
|
2024-09-03 21:23:27 -05:00
|
|
|
# TODO: added 2024-09-03 remove after 24.11
|
2025-04-11 14:56:13 +02:00
|
|
|
inherit (import ./deprecations.nix) deprecateExtraOptions optionsRenamedToSettings;
|
2024-01-01 21:50:06 +01:00
|
|
|
|
2024-09-03 21:23:27 -05:00
|
|
|
# Register nvim-cmp association
|
|
|
|
imports = [
|
|
|
|
{ cmpSourcePlugins.codeium = "codeium-nvim"; }
|
|
|
|
];
|
|
|
|
|
2025-04-11 15:44:57 +02:00
|
|
|
settingsExample = {
|
|
|
|
enable_chat = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
extraConfig = {
|
|
|
|
dependencies =
|
|
|
|
lib.genAttrs
|
|
|
|
[
|
|
|
|
"curl"
|
|
|
|
"gzip"
|
|
|
|
"coreutils"
|
|
|
|
"util-linux"
|
|
|
|
"codeium"
|
|
|
|
]
|
|
|
|
(_: {
|
|
|
|
enable = lib.mkDefault true;
|
|
|
|
});
|
|
|
|
};
|
2024-01-01 21:50:06 +01:00
|
|
|
}
|