mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
modules/keymaps: remove deprecation warning
This commit is contained in:
parent
274293fd69
commit
5eae22d14e
1 changed files with 0 additions and 28 deletions
|
@ -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 =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue