From b3c9e566aa84f1cc1017c65fbbf7b0843049ca6c Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 9 Feb 2024 10:38:48 +0100 Subject: [PATCH] plugins/emmet: remove uselessly strict typing --- plugins/utils/emmet.nix | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plugins/utils/emmet.nix b/plugins/utils/emmet.nix index d144abf9..db523c70 100644 --- a/plugins/utils/emmet.nix +++ b/plugins/utils/emmet.nix @@ -5,11 +5,6 @@ } @ attrs: with lib; let helpers = import ../helpers.nix {inherit lib;}; - - eitherAttrsStrInt = with types; let - strInt = either str int; - in - either strInt (attrsOf (either strInt (attrsOf strInt))); in with helpers.vim-plugin; mkVimPlugin attrs { @@ -31,7 +26,7 @@ in }; settings = mkDefaultOpt { - type = types.attrsOf (types.attrsOf eitherAttrsStrInt); + type = with types; attrsOf anything; global = "settings"; description = "Emmet settings"; };