modules/keymaps: remove deprecation warning

This commit is contained in:
Gaetan Lepage 2024-03-02 21:46:22 +01:00 committed by Gaétan Lepage
parent 274293fd69
commit 5eae22d14e

View file

@ -5,34 +5,6 @@
... ...
}: }:
with lib; { with lib; {
# This warning has been added on 2023-12-02. TODO: remove it in early Feb. 2024.
imports = [
(mkRemovedOptionModule
["maps"]
''
Please, use the new `keymaps` option which works as follows:
keymaps = [
{
# Default mode is "" which means normal-visual-op
key = "<C-m>";
action = ":!make<CR>";
}
{
# Mode can be a string or a list of strings
mode = "n";
key = "<leader>p";
action.__raw = "require('my-plugin').do_stuff";
# Note that all of the mapping options are now under the `options` attrs
options = {
silent = true;
desc = "My plugin does stuff";
};
}
];
'')
];
options = { options = {
keymaps = mkOption { keymaps = mkOption {
type = type =