mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-24 12:45:24 +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.mapAttrsToList (
|
||||
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)
|
||||
) v
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue