Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion lib/top-level.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,21 @@ lib.makeExtensible (
self:
let
# Used when importing parts of our lib
call = lib.callPackageWith {
autoArgs = {
inherit
call
self
lib
;
};

call =
fnOrFile:
let
fn = if builtins.isPath fnOrFile then import fnOrFile else fnOrFile;
fnAutoArgs = builtins.intersectAttrs (builtins.functionArgs fn) autoArgs;
in
args: fn (fnAutoArgs // args);
in
{
autocmd = call ./autocmd-helpers.nix { };
Expand Down