From fbf1cbc763033b191d8f9d9ecfb127810492c1e0 Mon Sep 17 00:00:00 2001 From: n3oney Date: Mon, 10 Apr 2023 22:27:13 +0200 Subject: [PATCH] fix: properly escale quotes in values --- modules/core/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/core/default.nix b/modules/core/default.nix index 6e92cff..ba257cf 100644 --- a/modules/core/default.nix +++ b/modules/core/default.nix @@ -266,10 +266,8 @@ in { toLuaBindings = mode: maps: builtins.map (value: '' - map("${mode}", "${value.key}", ${ - if value.action ? "__raw" - then value.action."__raw" - else "\"${value.action}\"" + map(${toLuaObject mode}, ${toLuaObject value.key}, ${ + toLuaObject value.action }, ${toLuaObject value.config})'') (genMaps mode maps); # I'm not sure if every one of these will work. @@ -316,6 +314,7 @@ in { in nvim.dag.entryAfter ["globalsScript"] luaConfig; + # This is probably not the right way to set the config. I'm not sure how it should look like. mappings = let maps = [ (splitString