mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-09 22:55:58 +01:00
Compare commits
1 commit
434810e0a5
...
414e7bc12f
Author | SHA1 | Date | |
---|---|---|---|
|
414e7bc12f |
2 changed files with 9 additions and 1 deletions
|
@ -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 ","
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue