diff --git a/home/modules/tui/neovim/keymaps.nix b/home/modules/tui/neovim/keymaps.nix index 14ab1fc..b153d1e 100644 --- a/home/modules/tui/neovim/keymaps.nix +++ b/home/modules/tui/neovim/keymaps.nix @@ -66,10 +66,20 @@ # sort "s" = ":sort"; }; + insert = + lib.mapAttrsToList + (key: action: { + mode = "i"; + inherit action key; + }) + { + # Save by Ctrl+s + "" = ":w"; + }; in config.lib.nixvim.keymaps.mkKeymaps {options.silent = true;} - (normal ++ visual); + (normal ++ visual ++ insert); }; }