lib/plugins: call sub-components with relevant args

This commit is contained in:
Matt Sturgeon 2024-12-18 23:15:09 +00:00
parent 690fc895b5
commit 787844cfe4
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
4 changed files with 21 additions and 23 deletions

View file

@ -1,13 +1,14 @@
{
call,
lib,
}:
{ lib }:
let
self = lib.nixvim.plugins;
call = lib.callPackageWith (self // { inherit call lib self; });
in
{
utils = call ./utils.nix { };
neovim = call ./neovim.nix { };
vim = call ./vim.nix { };
# Aliases
inherit (lib.nixvim.plugins.neovim) mkNeovimPlugin;
inherit (lib.nixvim.plugins.vim) mkVimPlugin;
inherit (self.neovim) mkNeovimPlugin;
inherit (self.vim) mkVimPlugin;
}