keymaps: use 'action.__raw' instead of 'lua = true' internally

This commit is contained in:
Gaetan Lepage 2024-02-03 17:42:24 +01:00 committed by Gaétan Lepage
parent 26a7c7ec5c
commit 2294a12b0b
8 changed files with 11 additions and 21 deletions

View file

@ -233,7 +233,7 @@ in {
(key != null)
{
inherit key;
action = luaFunc;
action.__raw = luaFunc;
}
)
{
@ -256,7 +256,7 @@ in {
mapAttrsToList
(id: key: {
inherit key;
action = genLuaFunc id;
action.__raw = genLuaFunc id;
})
mappingsAttrs
)
@ -283,7 +283,6 @@ in {
helpers.keymaps.mkKeymaps
{
mode = "n";
lua = true;
options.silent = cfg.keymapsSilent;
}
allMappings;