feat: add cloak with default config
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
return {
|
||||
'laytan/cloak.nvim',
|
||||
event = 'VeryLazy',
|
||||
opts = {
|
||||
enabled = true,
|
||||
cloak_character = '*',
|
||||
highlight_group = 'Comment',
|
||||
cloak_length = nil, -- Provide a number if you want to hide the true length of the value.
|
||||
try_all_patterns = true,
|
||||
cloak_telescope = true,
|
||||
cloak_on_leave = false,
|
||||
patterns = {
|
||||
{
|
||||
-- This can be a table to match multiple file patterns.
|
||||
file_pattern = '.env*',
|
||||
-- This can also be a table of patterns to cloak,
|
||||
-- example: cloak_pattern = { ':.+', '-.+' } for yaml files.
|
||||
cloak_pattern = '=.+',
|
||||
-- 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.
|
||||
replace = nil,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user