Compare commits

..

1 commit

Author SHA1 Message Date
Ching Pei Yang
414e7bc12f
Merge 8aa3a23e97 into 9d0247c599 2024-05-17 13:48:42 -04:00
2 changed files with 9 additions and 1 deletions

View file

@ -65,6 +65,9 @@ in rec {
then
if isLuaInline args
then args.expr
# if nobody is using this we should get rid of this
else if hasAttr "__empty" args
then "{ }"
else
"{"
+ (concatStringsSep ","

View file

@ -60,11 +60,16 @@
config = (attrs) the configuration options for this mapping (noremap, silent...)
}
*/
normalizeAction = action: {
normalizeAction = action: let
# Extract the values of the config options that have been explicitly set by the user
config =
filterAttrs (_: v: v != null)
(getAttrs (attrNames mapConfigOptions) action);
in {
config =
if config == {}
then {"__empty" = null;}
else config;
action =
if action.lua
then mkLuaInline action.action