{ config, lib, ... }: let inherit (lib) mkIf; cfg = config.vim; in { config = { vim.maps = { # normal mode mappings normal = mkIf cfg.disableArrows { "" = { action = ""; noremap = false; }; "" = { action = ""; noremap = false; }; "" = { action = ""; noremap = false; }; "" = { action = ""; noremap = false; }; } // mkIf cfg.mapLeaderSpace { "" = { action = ""; }; }; # insert mode mappings insert = mkIf cfg.disableArrows { "" = { action = ""; noremap = false; }; "" = { action = ""; noremap = false; }; "" = { action = ""; noremap = false; }; "" = { action = ""; noremap = false; }; }; }; }; }