mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-23 11:58:23 +00:00
Compare commits
1 commit
b99cf9b5e1
...
812f516dc0
Author | SHA1 | Date | |
---|---|---|---|
![]() |
812f516dc0 |
2 changed files with 18 additions and 2 deletions
|
@ -44,7 +44,23 @@
|
||||||
|
|
||||||
# legacy stuff
|
# legacy stuff
|
||||||
mapOption = submodule {
|
mapOption = submodule {
|
||||||
options = mapConfigOptions;
|
options =
|
||||||
|
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) desc silent nowait script expr unique noremap;
|
inherit (keymap) silent nowait script expr unique noremap;
|
||||||
};
|
};
|
||||||
|
|
||||||
toLuaKeymap = {
|
toLuaKeymap = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue