mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-12-18 19:02:17 +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
|
# sort
|
||||||
"<leader>s" = ":sort<CR>";
|
"<leader>s" = ":sort<CR>";
|
||||||
};
|
};
|
||||||
|
insert =
|
||||||
|
lib.mapAttrsToList
|
||||||
|
(key: action: {
|
||||||
|
mode = "i";
|
||||||
|
inherit action key;
|
||||||
|
})
|
||||||
|
{
|
||||||
|
# Save by Ctrl+s
|
||||||
|
"<C-s>" = "<Esc>:w<CR>";
|
||||||
|
};
|
||||||
in
|
in
|
||||||
config.lib.nixvim.keymaps.mkKeymaps
|
config.lib.nixvim.keymaps.mkKeymaps
|
||||||
{options.silent = true;}
|
{options.silent = true;}
|
||||||
(normal ++ visual);
|
(normal ++ visual ++ insert);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue