docs/user-guide: slightly simplify lib-overlay example

This commit is contained in:
Matt Sturgeon 2025-01-17 10:06:39 +00:00
parent 51474292cd
commit e4484133d6
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -57,8 +57,7 @@ This can be achieved using the lib overlay, available via the `<nixvim>.lib.over
outputs =
{ nixpkgs, ... }@inputs:
let
lib = import (nixpkgs + "/lib");
myCustomLib = lib.extend (final: prev: {
myCustomLib = nixpkgs.lib.extend (final: prev: {
# ...
});
myCustomLibForNixvim = myCustomLib.extend inputs.nixvim.lib.overlay;