mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
28 lines
513 B
Nix
28 lines
513 B
Nix
|
{
|
||
|
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];
|
||
|
};
|
||
|
}
|