mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 06:29:47 +01:00
fix: map descriptions (#358)
* remove unused * maps: fix missing description
This commit is contained in:
parent
2fc7dc798b
commit
e40cce5653
2 changed files with 2 additions and 18 deletions
|
@ -44,23 +44,7 @@
|
||||||
|
|
||||||
# legacy stuff
|
# legacy stuff
|
||||||
mapOption = submodule {
|
mapOption = submodule {
|
||||||
options =
|
options = mapConfigOptions;
|
||||||
mapConfigOptions
|
|
||||||
// {
|
|
||||||
action = mkOption {
|
|
||||||
type = str;
|
|
||||||
description = "The action to execute.";
|
|
||||||
};
|
|
||||||
|
|
||||||
lua = mkOption {
|
|
||||||
type = bool;
|
|
||||||
description = ''
|
|
||||||
If true, `action` is considered to be lua code.
|
|
||||||
Thus, it will not be wrapped in `""`.
|
|
||||||
'';
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
mapOptions = mode:
|
mapOptions = mode:
|
||||||
|
|
|
@ -37,7 +37,7 @@ in {
|
||||||
else keymap.action;
|
else keymap.action;
|
||||||
|
|
||||||
getOpts = keymap: {
|
getOpts = keymap: {
|
||||||
inherit (keymap) silent nowait script expr unique noremap;
|
inherit (keymap) desc silent nowait script expr unique noremap;
|
||||||
};
|
};
|
||||||
|
|
||||||
toLuaKeymap = {
|
toLuaKeymap = {
|
||||||
|
|
Loading…
Reference in a new issue