fix(extras.astro): support astro.config.ts root (#3786)

## What is this PR for?

Support
[`astro.config.ts`](https://docs.astro.build/en/guides/configuring-astro/#supported-config-file-types)
as a root file for the Astro extra.

## Does this PR fix an existing issue?

N/A

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
This commit is contained in:
Sandeep Dilip 2024-06-23 16:19:47 -04:00 committed by GitHub
parent b55c7734df
commit 8be66bb1a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,9 +3,11 @@ return {
return LazyVim.extras.wants({
ft = "astro",
root = {
-- https://docs.astro.build/en/guides/configuring-astro/#supported-config-file-types
"astro.config.js",
"astro.config.mjs",
"astro.config.cjs",
"astro.config.ts",
},
})
end,