mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
lib/options: remove mkStr
assert
If a non-string is passed in, it'll be formatted here. This is okay because `mkDesc` will not re-format anyway.
This commit is contained in:
parent
297aa6d0a2
commit
87d6654a9f
1 changed files with 1 additions and 3 deletions
|
@ -168,9 +168,7 @@ rec {
|
|||
mkStr =
|
||||
# TODO we should delegate rendering quoted string to `mkDefaultDesc`,
|
||||
# once we remove its special case for strings.
|
||||
default:
|
||||
assert default == null || isString default;
|
||||
mkNullableWithRaw types.str (generators.toPretty { } default);
|
||||
default: mkNullableWithRaw types.str (generators.toPretty { } default);
|
||||
|
||||
mkAttributeSet' = args: mkNullable' (args // { type = nixvimTypes.attrs; });
|
||||
mkAttributeSet = default: description: mkAttributeSet' { inherit default description; };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue