mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-09 14:45:58 +01:00
lib: remove unused __empty special case in toLuaObject
This commit is contained in:
parent
8aa3a23e97
commit
af72dc105d
2 changed files with 1 additions and 9 deletions
|
@ -65,9 +65,6 @@ in rec {
|
||||||
then
|
then
|
||||||
if isLuaInline args
|
if isLuaInline args
|
||||||
then args.expr
|
then args.expr
|
||||||
# if nobody is using this we should get rid of this
|
|
||||||
else if hasAttr "__empty" args
|
|
||||||
then "{ }"
|
|
||||||
else
|
else
|
||||||
"{"
|
"{"
|
||||||
+ (concatStringsSep ","
|
+ (concatStringsSep ","
|
||||||
|
|
|
@ -60,16 +60,11 @@
|
||||||
config = (attrs) the configuration options for this mapping (noremap, silent...)
|
config = (attrs) the configuration options for this mapping (noremap, silent...)
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
normalizeAction = action: let
|
normalizeAction = action: {
|
||||||
# Extract the values of the config options that have been explicitly set by the user
|
# Extract the values of the config options that have been explicitly set by the user
|
||||||
config =
|
config =
|
||||||
filterAttrs (_: v: v != null)
|
filterAttrs (_: v: v != null)
|
||||||
(getAttrs (attrNames mapConfigOptions) action);
|
(getAttrs (attrNames mapConfigOptions) action);
|
||||||
in {
|
|
||||||
config =
|
|
||||||
if config == {}
|
|
||||||
then {"__empty" = null;}
|
|
||||||
else config;
|
|
||||||
action =
|
action =
|
||||||
if action.lua
|
if action.lua
|
||||||
then mkLuaInline action.action
|
then mkLuaInline action.action
|
||||||
|
|
Loading…
Reference in a new issue