mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 09:48:42 +02:00
helpers: add "__emptyString" special attr name
This commit is contained in:
parent
1319a89ac2
commit
ee2e15b58b
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,8 @@ with lib; rec {
|
||||||
(n: v:
|
(n: v:
|
||||||
if head (stringToCharacters n) == "@"
|
if head (stringToCharacters n) == "@"
|
||||||
then toLuaObject v
|
then toLuaObject v
|
||||||
|
else if n == "__emptyString"
|
||||||
|
then "[''] = " + (toLuaObject v)
|
||||||
else "[${toLuaObject n}] = " + (toLuaObject v))
|
else "[${toLuaObject n}] = " + (toLuaObject v))
|
||||||
(filterAttrs
|
(filterAttrs
|
||||||
(
|
(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue