modules/opts: add default value to g and opt

This commit is contained in:
Dmitriy Pleshevskiy 2024-04-27 01:31:49 +03:00
parent 1f0c0b5cb0
commit 8b0bc33653
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -4,9 +4,11 @@
options.vim = with lib; with types; {
g = mkOption {
type = attrsOf (oneOf [ str bool number ]);
default = { };
};
opt = mkOption {
type = attrsOf anything;
default = { };
description = ''
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