plugins/visuals(indent-blankline): move to setupOpts (#329)

* plugins/visuals(indent-blankline): move to setupOpts

* configuration: match indentblankline part with changes
This commit is contained in:
diniamo 2024-07-12 17:47:33 +02:00 committed by GitHub
commit 32d231395f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 188 additions and 103 deletions

View file

@ -1,8 +1,8 @@
{lib}: let
inherit (lib) isStringLike showOption showFiles getFiles mergeOneOption mergeEqualOption;
inherit (lib) isStringLike showOption showFiles getFiles mergeOneOption mergeEqualOption mkOptionType;
inherit (lib.types) anything attrsOf;
inherit (lib.nvim.types) anythingConcatLists;
inherit (builtins) typeOf isAttrs any head concatLists;
inherit (builtins) typeOf isAttrs any head concatLists stringLength;
in {
# HACK: Does this break anything in our case?
# A modified version of the nixpkgs anything type that concatenates lists
@ -50,4 +50,12 @@ in {
# otherwise only allow equal values
(mergeFunctions.${commonType} or mergeEqualOption) loc defs;
};
char = mkOptionType {
name = "char";
description = "character";
descriptionClass = "noun";
check = value: stringLength value < 2;
merge = mergeEqualOption;
};
}

View file

@ -11,5 +11,5 @@ in {
inherit (typesDag) dagOf;
inherit (typesPlugin) pluginsOpt extraPluginType mkPluginSetupOption luaInline pluginType;
inherit (typesLanguage) diagnostics mkGrammarOption;
inherit (typesCustom) anythingConcatLists;
inherit (typesCustom) anythingConcatLists char;
}