mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 07:29:49 +01:00
lib: add deprecation warning for __empty
This commit is contained in:
parent
af72dc105d
commit
ac20dfbdd4
1 changed files with 5 additions and 0 deletions
|
@ -65,6 +65,11 @@ in rec {
|
||||||
then
|
then
|
||||||
if isLuaInline args
|
if isLuaInline args
|
||||||
then args.expr
|
then args.expr
|
||||||
|
else if hasAttr "__empty" args
|
||||||
|
then
|
||||||
|
lib.warn ''
|
||||||
|
Using `__empty` to define an empty lua table is deprecated. Use an empty attrset instead.
|
||||||
|
'' "{ }"
|
||||||
else
|
else
|
||||||
"{"
|
"{"
|
||||||
+ (concatStringsSep ","
|
+ (concatStringsSep ","
|
||||||
|
|
Loading…
Reference in a new issue