Using Cloak.nvim #2640
Using Cloak.nvim
#2640
-
Hi, I have added the plugin in my {
"laytan/cloak.nvim",
lazy = false,
opts = function()
return require "custom.configs.cloak"
end,
config = function(_, opts)
print "loading cloak"
require("cloak").setup(opts)
end,
}, and my local options = {
enabled = true,
cloak_character = "*",
cloak_length = nil,
try_all_patterns = true,
patterns = {
-- Match any file starting with '.env'.
-- This can be a table to match multiple file patterns.
file_pattern = ".env*",
-- Match an equals sign and any character after it.
-- 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 emtpy the legacy behavior of keeping the first character is retained.
replace = nil,
},
}
return options
Now when I am opening any Would love some help on this thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
siduck
Apr 2, 2024
Replies: 1 comment 3 replies
-
@Eshanatnight are you still using nvchad v2.0? always check lazy.nvim to see if plugin's loaded |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Eshanatnight you dont have to use opts here, we use it so users can override it from their configs. just directly pass in config function