plugins/cmp-fish: add fishPackage option

This commit is contained in:
Gaetan Lepage 2024-04-29 16:19:54 +02:00 committed by Gaétan Lepage
parent 4dea1478eb
commit 35c0f71457
2 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{
lib,
config,
pkgs,
...
}:
with lib; let
cfg = config.plugins.cmp-fish;
in {
meta.maintainers = [maintainers.GaetanLepage];
options.plugins.cmp-fish = {
fishPackage = mkOption {
type = with types; nullOr package;
default = pkgs.fish;
example = "null";
description = ''
Which package to use for `fish`.
Set to `null` to disable its automatic installation.
'';
};
};
config = mkIf cfg.enable {
extraPackages = [cfg.fishPackage];
};
}

View file

@ -21,6 +21,7 @@ in {
[
./codeium-nvim.nix
./copilot-cmp.nix
./cmp-fish.nix
./cmp-tabby.nix
./cmp-tabnine.nix
./crates-nvim.nix