cloak.lua
1 --- Cloak: hide .env* and similar 2 return { 3 specs = { 4 { src = 'https://github.com/laytan/cloak.nvim', name = 'cloak.nvim' }, 5 }, 6 config = function() 7 local cloak = require('cloak') 8 if type(cloak) == 'table' and cloak.setup then 9 cloak.setup({ 10 enabled = true, 11 cloak_character = '*', 12 highlight_group = 'Comment', 13 patterns = { 14 { 15 file_pattern = { '.env*', 'wrangler.toml', '.dev.vars' }, 16 cloak_pattern = '=.+', 17 }, 18 }, 19 }) 20 end 21 end, 22 }