modules/opts: add default value to g and opt
This commit is contained in:
parent
1f0c0b5cb0
commit
8b0bc33653
1 changed files with 2 additions and 0 deletions
|
@ -4,9 +4,11 @@
|
||||||
options.vim = with lib; with types; {
|
options.vim = with lib; with types; {
|
||||||
g = mkOption {
|
g = mkOption {
|
||||||
type = attrsOf (oneOf [ str bool number ]);
|
type = attrsOf (oneOf [ str bool number ]);
|
||||||
|
default = { };
|
||||||
};
|
};
|
||||||
opt = mkOption {
|
opt = mkOption {
|
||||||
type = attrsOf anything;
|
type = attrsOf anything;
|
||||||
|
default = { };
|
||||||
description = ''
|
description = ''
|
||||||
A special interface |vim.opt| exists for conveniently interacting with list-
|
A special interface |vim.opt| exists for conveniently interacting with list-
|
||||||
and map-style option from Lua: It allows accessing them as Lua tables and
|
and map-style option from Lua: It allows accessing them as Lua tables and
|
||||||
|
|
Loading…
Reference in a new issue