From 5d49b9b66d0eed89603221201490d27e8aea6b24 Mon Sep 17 00:00:00 2001 From: traxys Date: Fri, 29 Dec 2023 11:52:05 +0100 Subject: [PATCH] plugin/illuminate: Avoid using mkAttrsOf with submodules (#853) This confuses the documentation, as mentioned in the function definition. --- plugins/utils/illuminate.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/plugins/utils/illuminate.nix b/plugins/utils/illuminate.nix index c9655815..a479bed7 100644 --- a/plugins/utils/illuminate.nix +++ b/plugins/utils/illuminate.nix @@ -73,10 +73,14 @@ in { package = mkPackageOption "vim-illuminate" pkgs.vimPlugins.vim-illuminate; - filetypeOverrides = helpers.defaultNullOpts.mkAttrsOf (types.submodule {options = commonOptions;}) "{}" '' - Filetype specific overrides. - The keys are strings to represent the filetype. - ''; + filetypeOverrides = + helpers.defaultNullOpts.mkNullable + (with types; attrsOf (submodule {options = commonOptions;})) + "{}" + '' + Filetype specific overrides. + The keys are strings to represent the filetype. + ''; largeFileOverrides = mkOption { type = types.submodule {