mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-09 08:44:32 +02:00
plugins/cloak: init
This commit is contained in:
parent
3981a31464
commit
77efb038df
3 changed files with 166 additions and 0 deletions
49
tests/test-sources/plugins/utils/cloak.nix
Normal file
49
tests/test-sources/plugins/utils/cloak.nix
Normal file
|
@ -0,0 +1,49 @@
|
|||
{
|
||||
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 = "=.+";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue