diff --git a/lua/lazyvim/plugins/extras/util/mini-hipatterns.lua b/lua/lazyvim/plugins/extras/util/mini-hipatterns.lua index 5e4f5c43..287c0d77 100644 --- a/lua/lazyvim/plugins/extras/util/mini-hipatterns.lua +++ b/lua/lazyvim/plugins/extras/util/mini-hipatterns.lua @@ -14,17 +14,19 @@ M.plugin = { -- custom LazyVim option to enable the tailwind integration tailwind = { enabled = true, - ft = { - "typescriptreact", - "javascriptreact", + ft = { + "astro", "css", - "javascript", - "typescript", + "heex", "html", - "svelte", - "rust", "html-eex", - "heex", + "javascript", + "javascriptreact", + "rust", + "svelte", + "typescript", + "typescriptreact", + "vue", }, -- full: the whole css class will be highlighted -- compact: only the color will be highlighted @@ -48,25 +50,6 @@ M.plugin = { } end, config = function(_, opts) - -- backward compatibility - if opts.tailwind == true then - opts.tailwind = { - enabled = true, - ft = { - "typescriptreact", - "javascriptreact", - "css", - "javascript", - "typescript", - "html", - "svelte", - "rust", - "html-eex", - "heex", - }, - style = "full", - } - end if type(opts.tailwind) == "table" and opts.tailwind.enabled then -- reset hl groups when colorscheme changes vim.api.nvim_create_autocmd("ColorScheme", {