fix(hipatterns): default options

This commit is contained in:
Folke Lemaitre
2023-05-27 09:36:05 +02:00
parent 1288f0d5a5
commit 30824369c2

View File

@ -25,8 +25,11 @@ M.plugin = {
config = function(_, opts)
-- backward compatibility
if opts.tailwind == true then
opts.tailwind =
{ enabled = true, ft = { "typescriptreact", "javascriptreact", "css", "javascript", "typescript", "html" } }
opts.tailwind = {
enabled = true,
ft = { "typescriptreact", "javascriptreact", "css", "javascript", "typescript", "html" },
style = "full",
}
end
if type(opts.tailwind) == "table" and opts.tailwind.enabled then
-- reset hl groups when colorscheme changes