mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-12-18 10:52:18 +00:00
neovim: add insert mode save keymap
This commit is contained in:
parent
c955e117e8
commit
5059c46318
1 changed files with 11 additions and 1 deletions
|
@ -66,10 +66,20 @@
|
|||
# sort
|
||||
"<leader>s" = ":sort<CR>";
|
||||
};
|
||||
insert =
|
||||
lib.mapAttrsToList
|
||||
(key: action: {
|
||||
mode = "i";
|
||||
inherit action key;
|
||||
})
|
||||
{
|
||||
# Save by Ctrl+s
|
||||
"<C-s>" = "<Esc>:w<CR>";
|
||||
};
|
||||
in
|
||||
config.lib.nixvim.keymaps.mkKeymaps
|
||||
{options.silent = true;}
|
||||
(normal ++ visual);
|
||||
(normal ++ visual ++ insert);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue