nix-community.nixvim/tests/test-sources/plugins/utils/cloak.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
899 B
Nix
Raw Normal View History

2024-04-25 01:16:04 +02:00
{
empty = {
plugins.cloak.enable = true;
};
defaults = {
plugins.cloak = {
enable = true;
settings = {
enabled = true;
cloak_character = "*";
highlight_group = "Comment";
cloak_length = null;
try_all_patterns = true;
cloak_telescope = true;
patterns = [
{
file_pattern = ".env*";
cloak_pattern = "=.+";
replace = null;
}
];
};
};
};
example = {
plugins.cloak = {
enable = true;
settings = {
enabled = true;
cloak_character = "*";
highlight_group = "Comment";
patterns = [
{
file_pattern = [
".env*"
"wrangler.toml"
".dev.vars"
];
cloak_pattern = "=.+";
}
];
};
};
};
}