mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
contributing: add note clarifying freeform settings
This commit is contained in:
parent
71b8d0b327
commit
e054fe2bc0
1 changed files with 5 additions and 1 deletions
|
@ -68,9 +68,13 @@ The resulting `settings` attrs will be directly translated to `lua` and will be
|
||||||
|
|
||||||
In either case, you don't need to bother implementing this part. It is done automatically.
|
In either case, you don't need to bother implementing this part. It is done automatically.
|
||||||
|
|
||||||
> [!NOTE]
|
> [!TIP]
|
||||||
> Learn more about the [RFC 42](https://github.com/NixOS/rfcs/blob/master/rfcs/0042-config-option.md) which motivated this new approach.
|
> Learn more about the [RFC 42](https://github.com/NixOS/rfcs/blob/master/rfcs/0042-config-option.md) which motivated this new approach.
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> `settings` has a "freeform" type `attrsOf anything`, meaning it can be configured with _anything_.
|
||||||
|
> Declaring `settingsOptions` is therefore optional and just adds type-checking and documentation.
|
||||||
|
|
||||||
|
|
||||||
### Tests
|
### Tests
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue