docs icon indicating copy to clipboard operation
docs copied to clipboard

Astro Language Server and Prettier

Open matadaniel opened this issue 7 months ago β€’ 4 comments

πŸ“š Subject area/topic

Astro language server

πŸ“‹ Page(s) affected (or suggested, for new content)

https://docs.astro.build/en/editor-setup/

πŸ“‹ Description of content that is out-of-date or incorrect

Prettier is a popular formatter for JavaScript, HTML, CSS, and more. If you’re using the Astro VS Code Extension or the Astro language server within another editor, code formatting with Prettier is included.

This contradicts https://github.com/withastro/language-tools/tree/df90fe5f79978b567387cc1b0cedcc23a43bd156/packages/language-server#formatting-does-not-work.

I was not able to format Astro files in Neovim until I installed prettier and prettier-plugin-astro as dependencies.

πŸ–₯️ Reproduction in StackBlitz (if reporting incorrect content or code samples)

No response

matadaniel avatar Mar 27 '25 21:03 matadaniel