feat(prettier): with the prettier & astro extra, prettier will be enabled if the prettier-astro-plugin is available

This commit is contained in:
Folke Lemaitre 2024-06-07 23:01:14 +02:00
parent 7d50bf0626
commit 214f5fccdf
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -41,4 +41,14 @@ return {
})
end,
},
{
"conform.nvim",
opts = function(_, opts)
if LazyVim.has_extra("formatting.prettier") then
opts.formatters_by_ft = opts.formatters_by_ft or {}
opts.formatters_by_ft.astro = { "prettier" }
end
end,
},
}