mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 17:28:39 +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:
|
||||
if head (stringToCharacters n) == "@"
|
||||
then toLuaObject v
|
||||
else if n == "__emptyString"
|
||||
then "[''] = " + (toLuaObject v)
|
||||
else "[${toLuaObject n}] = " + (toLuaObject v))
|
||||
(filterAttrs
|
||||
(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue