mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
treewide: avoid passing pkgs
to our lib
In the two places where our "helpers" lib is exclusively internal (flake module args and building the docs), we no longer supply `pkgs`. In the other 4 locations, we now note why we still do in a comment.
This commit is contained in:
parent
76df09619d
commit
191b0a9502
7 changed files with 11 additions and 10 deletions
|
@ -46,6 +46,7 @@ in
|
|||
config = mkMerge [
|
||||
{
|
||||
# Make our lib available to the host modules
|
||||
# NOTE: user-facing so we must include the legacy `pkgs` argument
|
||||
lib.nixvim = lib.mkDefault (import ../lib { inherit pkgs lib; });
|
||||
|
||||
# Make nixvim's "extended" lib available to the host's module args
|
||||
|
|
|
@ -7,6 +7,7 @@ default_pkgs: self:
|
|||
module,
|
||||
}:
|
||||
let
|
||||
# NOTE: user-facing so we must include the legacy `pkgs` argument
|
||||
helpers = import ../lib { inherit pkgs lib _nixvimTests; };
|
||||
|
||||
inherit (helpers.modules) evalNixvim;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue