-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Neovim Formating with pretier doesn't work in .astro files #8534
Comments
Hi @f-amine ! I'm glad you eventually got this working! Would you like to make a PR to add this information yourself to the docs page? I could see adding it to the bottom of the page, in the Prettier section, maybe like:
To configure Prettier for Astro in Neovim, use the following configuration:
Do you think this would be a helpful addition? If so, I'd be happy to receive a PR to the docs page! |
Okey I can do that, I'm gonna look for the specific file for that and make a PR right now |
Amazing @f-amine - Quick tip - you can just go to that page in docs and click "edit this page" and you'll be taken right there! 🙌 |
sent a pr, thanks for the fast reply !! |
📚 Subject area/topic
Neovim Formater Integration with Astro
📋 Page(s) affected (or suggested, for new content)
https://docs.astro.build/en/editor-setup/#other-code-editors
📋 Description of content that is out-of-date or incorrect
The current documentation for setting up Prettier and LSP with Neovim does not include necessary configuration details in the package.json for formatting .astro files.
Description
After setting up Prettier and the LSP for Neovim, formatting doesn't work correctly. It took a day to resolve this issue, and it was eventually fixed with help from the Astro Discord community member @grahf. To save others from similar frustration, please add the following configuration to the documentation:
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
No response
The text was updated successfully, but these errors were encountered: