plugins/emmet: remove uselessly strict typing

This commit is contained in:
Gaetan Lepage 2024-02-09 10:38:48 +01:00 committed by Gaétan Lepage
parent b30e8a1eda
commit b3c9e566aa

View file

@ -5,11 +5,6 @@
} @ attrs: } @ attrs:
with lib; let with lib; let
helpers = import ../helpers.nix {inherit lib;}; helpers = import ../helpers.nix {inherit lib;};
eitherAttrsStrInt = with types; let
strInt = either str int;
in
either strInt (attrsOf (either strInt (attrsOf strInt)));
in in
with helpers.vim-plugin; with helpers.vim-plugin;
mkVimPlugin attrs { mkVimPlugin attrs {
@ -31,7 +26,7 @@ in
}; };
settings = mkDefaultOpt { settings = mkDefaultOpt {
type = types.attrsOf (types.attrsOf eitherAttrsStrInt); type = with types; attrsOf anything;
global = "settings"; global = "settings";
description = "Emmet settings"; description = "Emmet settings";
}; };