mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 08:53:28 +02:00
plugins/cmp-fish: move extra option to the sources list
This commit is contained in:
parent
5abe382c54
commit
eaa2084627
2 changed files with 3 additions and 21 deletions
|
@ -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 ]; };
|
|
||||||
}
|
|
|
@ -61,6 +61,9 @@ let
|
||||||
{
|
{
|
||||||
pluginName = "cmp-fish";
|
pluginName = "cmp-fish";
|
||||||
sourceName = "fish";
|
sourceName = "fish";
|
||||||
|
|
||||||
|
extraOptions.fishPackage = lib.mkPackageOption pkgs "fish" { nullable = true; };
|
||||||
|
extraConfig = cfg: { extraPackages = [ cfg.fishPackage ]; };
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
pluginName = "cmp-fuzzy-buffer";
|
pluginName = "cmp-fuzzy-buffer";
|
||||||
|
@ -200,7 +203,6 @@ in
|
||||||
imports = [
|
imports = [
|
||||||
./copilot-cmp.nix
|
./copilot-cmp.nix
|
||||||
./cmp-ai.nix
|
./cmp-ai.nix
|
||||||
./cmp-fish.nix
|
|
||||||
./cmp-git.nix
|
./cmp-git.nix
|
||||||
./cmp-tabnine.nix
|
./cmp-tabnine.nix
|
||||||
./crates-nvim.nix
|
./crates-nvim.nix
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue