modules/commands: fix nargs enum

This commit is contained in:
Nick Hu 2024-05-21 12:37:43 +01:00 committed by Gaétan Lepage
parent 63cfd8cefc
commit 3ec6dff17b
2 changed files with 3 additions and 2 deletions

View file

@ -16,8 +16,8 @@ let
nargs =
helpers.mkNullOrOption
(types.enum [
"0"
"1"
0
1
"*"
"?"
"+"

View file

@ -4,6 +4,7 @@
"W" = {
command = ":w<CR>";
desc = "Write file";
nargs = 0;
};
"Z" = {
command = ":echo fooo<CR>";