mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
docs: Move standalone usage to modules section
This commit is contained in:
parent
db6b61f117
commit
87df94dcbd
3 changed files with 15 additions and 5 deletions
|
@ -34,11 +34,11 @@
|
|||
cat \
|
||||
${./nixvim-header-start.5} \
|
||||
${mkMDSection ../user-guide/helpers.md} \
|
||||
${mkMDSection ../user-guide/extending-config.md} \
|
||||
${mkMDSection ../user-guide/faq.md} \
|
||||
${./nixvim-header-end.5} \
|
||||
>$out/nixvim-header.5
|
||||
'';
|
||||
# FIXME add platform specific docs to manpage
|
||||
in
|
||||
runCommand "nixvim-configuration-reference-manpage" {
|
||||
nativeBuildInputs = [installShellFiles nixos-render-docs];
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
|
||||
- [Installation](./user-guide/install.md)
|
||||
- [Helpers](./user-guide/helpers.md)
|
||||
- [Extending a standalone configuration](./user-guide/extending-config.md)
|
||||
- [FAQ](./user-guide/faq.md)
|
||||
|
||||
# Module Specific Options
|
||||
# Platforms
|
||||
|
||||
- [Home Manager Usage](./modules/hm.md)
|
||||
- [Standalone Usage](./modules/standalone.md)
|
||||
|
||||
# Options
|
||||
|
||||
|
|
|
@ -1,4 +1,13 @@
|
|||
# Extending a standalone configuration
|
||||
# Standalone Usage
|
||||
|
||||
## Options
|
||||
|
||||
When used standalone, nixvim's options are available directly, without any prefix/namespace.
|
||||
This is unlike the other modules which typically use a `programs.nixvim.*` prefix.
|
||||
|
||||
There are **no** standalone-specific options available.
|
||||
|
||||
## Extending an existing configuration
|
||||
|
||||
Given a `nvim` derivation obtained from `makeNixvim` or `makeNivxmiWithModule` it is possible to create a new derivation with additional options.
|
||||
|
||||
|
@ -6,7 +15,7 @@ This is done through the `nvim.nixvimExtend` function. This function takes a Nix
|
|||
|
||||
This attribute is recursive, meaning that it can be applied an arbitrary number of times.
|
||||
|
||||
## Example
|
||||
### Example
|
||||
|
||||
```nix
|
||||
{makeNixvimWithModule}: let
|
||||
|
@ -24,3 +33,4 @@ in
|
|||
```
|
||||
|
||||
This will generate a `init.lua` that will contain the three comments from each stages.
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue