From 77511e191555db691c847dd51bb5ac546fc1cac2 Mon Sep 17 00:00:00 2001 From: saygo-png Date: Mon, 3 Nov 2025 02:11:26 +0100 Subject: [PATCH] plugins/cloak: cleanup, remove settings declarations Signed-off-by: saygo-png --- plugins/by-name/cloak/default.nix | 68 +------------------------------ 1 file changed, 1 insertion(+), 67 deletions(-) diff --git a/plugins/by-name/cloak/default.nix b/plugins/by-name/cloak/default.nix index 566694a4..15a53d4f 100644 --- a/plugins/by-name/cloak/default.nix +++ b/plugins/by-name/cloak/default.nix @@ -1,79 +1,13 @@ { lib, - helpers, ... }: -with lib; lib.nixvim.plugins.mkNeovimPlugin { name = "cloak"; package = "cloak-nvim"; description = "Cloak allows you to overlay *'s over defined patterns."; - maintainers = [ maintainers.GaetanLepage ]; - - settingsOptions = { - enabled = helpers.defaultNullOpts.mkBool true '' - Whether to enable the plugin. - ''; - - cloak_character = helpers.defaultNullOpts.mkStr "*" '' - Define the cloak character. - ''; - - highlight_group = helpers.defaultNullOpts.mkStr "Comment" '' - The applied highlight group (colors) on the cloaking, see `:h highlight`. - ''; - - cloak_length = helpers.mkNullOrOption types.ints.unsigned '' - Provide a number if you want to hide the true length of the value. - Applies the length of the replacement characters for all matched patterns, defaults to the - length of the matched pattern. - ''; - - try_all_patterns = helpers.defaultNullOpts.mkBool true '' - Whether it should try every pattern to find the best fit or stop after the first. - ''; - - cloak_telescope = helpers.defaultNullOpts.mkBool true '' - Set to true to cloak Telescope preview buffers. - (Required feature not in 0.1.x) - ''; - - patterns = - helpers.defaultNullOpts.mkListOf - (types.submodule { - options = { - file_pattern = helpers.defaultNullOpts.mkNullable (with types; either str (listOf str)) ".env*" '' - One or several patterns to match against. - They should be valid autocommand patterns. - ''; - - cloak_pattern = helpers.defaultNullOpts.mkNullable (with types; either str (listOf str)) "=.+" '' - One or several patterns to cloak. - - Example: `[":.+" "-.+"]` for yaml files. - ''; - - replace = helpers.mkNullOrOption types.anything '' - A function, table or string to generate the replacement. - The actual replacement will contain the `cloak_character` where it doesn't cover - the original text. - If left empty the legacy behavior of keeping the first character is retained. - ''; - }; - }) - [ - { - - file_pattern = ".env*"; - cloak_pattern = "=.+"; - replace = null; - } - ] - '' - List of pattern configurations. - ''; - }; + maintainers = [ lib.maintainers.GaetanLepage ]; settingsExample = { enabled = true;