mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-27 14:15:54 +02:00
lib/to-lua: fix allowUnkeyedAttrs
option
This commit is contained in:
parent
2cda50d530
commit
4e2a022165
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ rec {
|
||||||
+ lib.concatStringsSep ("," + introSpace) (
|
+ lib.concatStringsSep ("," + introSpace) (
|
||||||
lib.mapAttrsToList (
|
lib.mapAttrsToList (
|
||||||
name: value:
|
name: value:
|
||||||
(if allowExplicitEmpty && lib.hasPrefix "__unkeyed" name then "" else toTableKey name + " = ")
|
(if allowUnkeyedAttrs && lib.hasPrefix "__unkeyed" name then "" else toTableKey name + " = ")
|
||||||
+ lib.addErrorContext "while evaluating an attribute `${name}`" (go (indent + " ") value)
|
+ lib.addErrorContext "while evaluating an attribute `${name}`" (go (indent + " ") value)
|
||||||
) v
|
) v
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue