fix(hipatterns): default options
This commit is contained in:
@ -25,8 +25,11 @@ M.plugin = {
|
|||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
-- backward compatibility
|
-- backward compatibility
|
||||||
if opts.tailwind == true then
|
if opts.tailwind == true then
|
||||||
opts.tailwind =
|
opts.tailwind = {
|
||||||
{ enabled = true, ft = { "typescriptreact", "javascriptreact", "css", "javascript", "typescript", "html" } }
|
enabled = true,
|
||||||
|
ft = { "typescriptreact", "javascriptreact", "css", "javascript", "typescript", "html" },
|
||||||
|
style = "full",
|
||||||
|
}
|
||||||
end
|
end
|
||||||
if type(opts.tailwind) == "table" and opts.tailwind.enabled then
|
if type(opts.tailwind) == "table" and opts.tailwind.enabled then
|
||||||
-- reset hl groups when colorscheme changes
|
-- reset hl groups when colorscheme changes
|
||||||
|
Reference in New Issue
Block a user