mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
parent
8b9ba44195
commit
8c44124a1f
1 changed files with 16 additions and 8 deletions
|
@ -1,16 +1,24 @@
|
|||
# Helpers
|
||||
|
||||
Regardless of the way NixVim is used (as a home-manager module, a nixos module, or as a standalone module),
|
||||
helpers can be included in the same way.
|
||||
|
||||
You can simply use:
|
||||
If Nixvim is built using the standalone method, you can access our `helpers` as a module arg:
|
||||
|
||||
```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
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue