plugins/cmp-fish: move extra option to the sources list

This commit is contained in:
Gaetan Lepage 2024-12-18 18:48:46 +01:00
parent 5abe382c54
commit eaa2084627
2 changed files with 3 additions and 21 deletions

View file

@ -1,20 +0,0 @@
{
lib,
config,
pkgs,
...
}:
let
cfg = config.plugins.cmp-fish;
in
{
meta.maintainers = [ lib.maintainers.GaetanLepage ];
options.plugins.cmp-fish = {
fishPackage = lib.mkPackageOption pkgs "fish" {
nullable = true;
};
};
config = lib.mkIf cfg.enable { extraPackages = [ cfg.fishPackage ]; };
}

View file

@ -61,6 +61,9 @@ let
{
pluginName = "cmp-fish";
sourceName = "fish";
extraOptions.fishPackage = lib.mkPackageOption pkgs "fish" { nullable = true; };
extraConfig = cfg: { extraPackages = [ cfg.fishPackage ]; };
}
{
pluginName = "cmp-fuzzy-buffer";
@ -200,7 +203,6 @@ in
imports = [
./copilot-cmp.nix
./cmp-ai.nix
./cmp-fish.nix
./cmp-git.nix
./cmp-tabnine.nix
./crates-nvim.nix