add custom plugins
This commit is contained in:
parent
c80a77488b
commit
693e7c3053
10 changed files with 175 additions and 1 deletions
26
lua/custom/plugins/cloak.lua
Normal file
26
lua/custom/plugins/cloak.lua
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
return {
|
||||
"laytan/cloak.nvim",
|
||||
version = "*",
|
||||
config = function()
|
||||
require("cloak").setup {
|
||||
enabled = true,
|
||||
cloak_character = '*',
|
||||
-- The applied highlight group (colors) on the cloaking, see `:h highlight`.
|
||||
highlight_group = 'Comment',
|
||||
-- Applies the length of the replacement characters for all matched
|
||||
-- patterns, defaults to the length of the matched pattern.
|
||||
cloak_length = nil, -- Provide a number if you want to hide the true length of the value.
|
||||
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 = '=.+'
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue