mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-04 01:55:11 +02:00
modules/keymaps: deprecate maps option
This commit is contained in:
parent
ae3a47674b
commit
48dd8d28cf
3 changed files with 71 additions and 247 deletions
|
@ -1,38 +1,4 @@
|
|||
{helpers, ...}: {
|
||||
legacy = {
|
||||
maps.normal."," = "<cmd>echo \"test\"<cr>";
|
||||
};
|
||||
|
||||
legacy-mkMaps = {
|
||||
maps = helpers.keymaps.mkMaps {silent = true;} {
|
||||
normal."," = "<cmd>echo \"test\"<cr>";
|
||||
visual = {
|
||||
"<C-a>" = {
|
||||
action = "function() print('toto') end";
|
||||
lua = true;
|
||||
silent = false;
|
||||
};
|
||||
"<C-z>" = {
|
||||
action = "bar";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
legacy-mkModeMaps = {
|
||||
maps.normal = helpers.keymaps.mkModeMaps {silent = true;} {
|
||||
"," = "<cmd>echo \"test\"<cr>";
|
||||
"<C-a>" = {
|
||||
action = "function() print('toto') end";
|
||||
lua = true;
|
||||
silent = false;
|
||||
};
|
||||
"<leader>b" = {
|
||||
action = "bar";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
keymaps = [
|
||||
{
|
||||
|
@ -47,7 +13,7 @@
|
|||
];
|
||||
};
|
||||
|
||||
mkMaps = {
|
||||
mkKeymaps = {
|
||||
keymaps =
|
||||
helpers.keymaps.mkKeymaps
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue