From 93c6f6e7f48326980136c080b4cc5a5cbf1754bf Mon Sep 17 00:00:00 2001 From: Pei Yang Ching <59727193+horriblename@users.noreply.github.com> Date: Sun, 18 Aug 2024 15:04:32 +0200 Subject: [PATCH] maps: fix bad mode names --- modules/neovim/mappings/config.nix | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/modules/neovim/mappings/config.nix b/modules/neovim/mappings/config.nix index b7e274b..a620e37 100644 --- a/modules/neovim/mappings/config.nix +++ b/modules/neovim/mappings/config.nix @@ -42,17 +42,17 @@ in { } ]; }) - (mapAttrs (_key: processLegacyMap "n") cfg.maps.normal) - (mapAttrs (_key: processLegacyMap "i") cfg.maps.insert) - (mapAttrs (_key: processLegacyMap "s") cfg.maps.select) - (mapAttrs (_key: processLegacyMap "v") cfg.maps.visual) - (mapAttrs (_key: processLegacyMap "t") cfg.maps.terminal) - (mapAttrs (_key: processLegacyMap "nvo") cfg.maps.normalVisualOp) - (mapAttrs (_key: processLegacyMap "nx") cfg.maps.visualOnly) - (mapAttrs (_key: processLegacyMap "o") cfg.maps.operator) - (mapAttrs (_key: processLegacyMap "ic") cfg.maps.insertCommand) - (mapAttrs (_key: processLegacyMap "l") cfg.maps.lang) - (mapAttrs (_key: processLegacyMap "c") cfg.maps.command) + (mapAttrs (_key: processLegacyMap ["n"]) cfg.maps.normal) + (mapAttrs (_key: processLegacyMap ["i"]) cfg.maps.insert) + (mapAttrs (_key: processLegacyMap ["s"]) cfg.maps.select) + (mapAttrs (_key: processLegacyMap ["v"]) cfg.maps.visual) + (mapAttrs (_key: processLegacyMap ["t"]) cfg.maps.terminal) + (mapAttrs (_key: processLegacyMap ["n" "v" "o"]) cfg.maps.normalVisualOp) + (mapAttrs (_key: processLegacyMap ["n" "x"]) cfg.maps.visualOnly) + (mapAttrs (_key: processLegacyMap ["o"]) cfg.maps.operator) + (mapAttrs (_key: processLegacyMap ["i" "c"]) cfg.maps.insertCommand) + (mapAttrs (_key: processLegacyMap ["l"]) cfg.maps.lang) + (mapAttrs (_key: processLegacyMap ["c"]) cfg.maps.command) ]; }; }