From 8b0bc336534d6ba49f5ce653519cbbf2d7cd516f Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Sat, 27 Apr 2024 01:31:49 +0300 Subject: [PATCH] modules/opts: add default value to g and opt --- modules/vim/opts.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/vim/opts.nix b/modules/vim/opts.nix index 9dd832c..f2ea2fd 100644 --- a/modules/vim/opts.nix +++ b/modules/vim/opts.nix @@ -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