1
0
Fork 0
mirror of https://github.com/NotAShelf/neovim-flake.git synced 2024-12-25 18:19:47 +01:00

fix: properly escale quotes in values

This commit is contained in:
n3oney 2023-04-10 22:27:13 +02:00
parent 0649f710be
commit cbeedbbab5
No known key found for this signature in database
GPG key ID: C786693DE727850E

View file

@ -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