mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-10 08:05:57 +01:00
fix: properly escale quotes in values
This commit is contained in:
parent
a54216006d
commit
fbf1cbc763
1 changed files with 3 additions and 4 deletions
|
@ -266,10 +266,8 @@ in {
|
||||||
|
|
||||||
toLuaBindings = mode: maps:
|
toLuaBindings = mode: maps:
|
||||||
builtins.map (value: ''
|
builtins.map (value: ''
|
||||||
map("${mode}", "${value.key}", ${
|
map(${toLuaObject mode}, ${toLuaObject value.key}, ${
|
||||||
if value.action ? "__raw"
|
toLuaObject value.action
|
||||||
then value.action."__raw"
|
|
||||||
else "\"${value.action}\""
|
|
||||||
}, ${toLuaObject value.config})'') (genMaps mode maps);
|
}, ${toLuaObject value.config})'') (genMaps mode maps);
|
||||||
|
|
||||||
# I'm not sure if every one of these will work.
|
# I'm not sure if every one of these will work.
|
||||||
|
@ -316,6 +314,7 @@ in {
|
||||||
in
|
in
|
||||||
nvim.dag.entryAfter ["globalsScript"] luaConfig;
|
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
|
mappings = let
|
||||||
maps = [
|
maps = [
|
||||||
(splitString
|
(splitString
|
||||||
|
|
Loading…
Reference in a new issue