mirror of
https://github.com/nix-community/nixvim.git
synced 2026-09-26 01:00:44 -04:00
helpers: add "__emptyString" special attr name
This commit is contained in:
committed by
Gaétan Lepage
parent
1319a89ac2
commit
ee2e15b58b
@@ -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
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user