mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
docs/user-guide: add sub-headings to helpers.md
This commit is contained in:
parent
ff29c97723
commit
b28ebf2535
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
# Helpers
|
||||
|
||||
## Accessing Nixvim's functions
|
||||
|
||||
If Nixvim is built using the standalone method, you can access our "helpers" as part of the `lib` module arg:
|
||||
|
||||
```nix
|
||||
|
@ -37,6 +39,8 @@ This "extended" lib, includes everything normally in `lib`, along with some addi
|
|||
|
||||
**Note:** the `lib` argument passed to modules is entirely unrelated to the `lib` _option_ accessed as `config.lib`!
|
||||
|
||||
## Common helper functions
|
||||
|
||||
A certain number of helpers are defined that can be useful:
|
||||
|
||||
- `helpers.emptyTable`: An empty lua table `{}` that will be included in the final lua configuration.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue