Files
dotfiles/.config/nvim/lua/plugins/cloak.lua
T

28 lines
996 B
Lua

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,
},
},
},
}