docs: user-guide/helpers.mdlib/index.md

Move the user-guide to the new lib reference docs.

Added a MDBook redirect entry.

Updated man docs.
This commit is contained in:
Matt Sturgeon 2025-05-15 14:54:58 +01:00
parent 1c6dd6579a
commit 0c7e2aa96b
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
7 changed files with 17 additions and 5 deletions

View file

@ -27,7 +27,7 @@ in
assert lib.assertMsg (extraSpecialArgs ? lib -> extraSpecialArgs.lib ? nixvim) ''
Nixvim requires a lib that includes some custom extensions, however the `lib` from `specialArgs` does not have a `nixvim` attr.
Remove `lib` from nixvim's `specialArgs` or ensure you apply nixvim's extensions to your `lib`.
See https://nix-community.github.io/nixvim/user-guide/helpers.html#using-a-custom-lib-with-nixvim'';
See https://nix-community.github.io/nixvim/lib/index.html#using-a-custom-lib-with-nixvim'';
assert lib.assertMsg (system != null -> lib.isString system) ''
When `system` is supplied to `evalNixvim`, it must be a string.
To define a more complex system, please use nixvim's `nixpkgs.hostPlatform` option.'';