docs/user-guide: fix blurb on accessing helpers

Fixes #1220
This commit is contained in:
Matt Sturgeon 2024-07-08 08:37:46 +01:00
parent 8b9ba44195
commit 8c44124a1f
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -1,16 +1,24 @@
# Helpers # Helpers
Regardless of the way NixVim is used (as a home-manager module, a nixos module, or as a standalone module), If Nixvim is built using the standalone method, you can access our `helpers` as a module arg:
helpers can be included in the same way.
You can simply use:
```nix ```nix
{ helpers, ... }:
{ {
helpers, # Your config
... }
}: { ```
# Your config
If Nixvim is being used as as a home-manager module, a nixos module, or as a dawwin module,
helpers can be accessed via the `config.nixvim.helpers` option:
```nix
{ config, ... }:
let
inherit (config.nixvim) helpers;
in
{
# Your config
} }
``` ```