mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +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 =
|
mkStr =
|
||||||
# TODO we should delegate rendering quoted string to `mkDefaultDesc`,
|
# TODO we should delegate rendering quoted string to `mkDefaultDesc`,
|
||||||
# once we remove its special case for strings.
|
# once we remove its special case for strings.
|
||||||
default:
|
default: mkNullableWithRaw types.str (generators.toPretty { } default);
|
||||||
assert default == null || isString default;
|
|
||||||
mkNullableWithRaw types.str (generators.toPretty { } default);
|
|
||||||
|
|
||||||
mkAttributeSet' = args: mkNullable' (args // { type = nixvimTypes.attrs; });
|
mkAttributeSet' = args: mkNullable' (args // { type = nixvimTypes.attrs; });
|
||||||
mkAttributeSet = default: description: mkAttributeSet' { inherit default description; };
|
mkAttributeSet = default: description: mkAttributeSet' { inherit default description; };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue