mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
parent
8b9ba44195
commit
8c44124a1f
1 changed files with 16 additions and 8 deletions
|
@ -1,15 +1,23 @@
|
||||||
# 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, ... }:
|
||||||
|
{
|
||||||
|
# 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
|
||||||
{
|
{
|
||||||
helpers,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
# Your config
|
# Your config
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue