feat(extras): simple extra for astro

This commit is contained in:
Folke Lemaitre
2024-05-30 11:17:21 +02:00
parent cf6775a959
commit e7d4b397b2

View File

@ -0,0 +1,30 @@
return {
recommended = function()
return LazyVim.extras.wants({
ft = "astro",
root = {
"astro.config.js",
"astro.config.mjs",
"astro.config.cjs",
},
})
end,
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "astro" })
end
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
astro = {},
},
},
},
}