plugin/illuminate: Avoid using mkAttrsOf with submodules (#853)

This confuses the documentation, as mentioned in the function
definition.
This commit is contained in:
traxys 2023-12-29 11:52:05 +01:00 committed by GitHub
parent 3b9fa101fb
commit 5d49b9b66d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {