Prettier⁺ for Nova

Hi there,

I know it’s generally considered bad manners to start a first post with a bit of unsolicited self-promotion—so if this feels improper, feel free to delete it.

I recently watched @dan’s YouTube video about using ChatGPT with Nova as well as his video on Component Editing. So it seems like there might be some Nova users around here.

I’m the developer of Prettier⁺ for Nova. I recently forked the original Prettier extension, since it hadn’t seen any updates in a long time and was missing a few features I was looking for.

Since then, I’ve added several useful plugins—at least in my opinion—including:

  • @prettier/plugin-php
  • @prettier/plugin-xml
  • prettier-plugin-astro
  • prettier-plugin-blade
  • prettier-plugin-ejs
  • prettier-plugin-ejs-tailwindcss
  • prettier-plugin-liquid
  • prettier-plugin-java
  • prettier-plugin-nginx
  • prettier-plugin-properties
  • prettier-plugin-sql
  • prettier-plugin-tailwindcss

In addition, there are several new options and improvements:

  • Uses Prettier’s formatWithCursor, which speeds up formatting by 1500× (yes, 1500)
  • Advanced Syntax Detection
  • Option to set a global Prettier config file
  • Option to always use the bundled Prettier
  • Option to always use the extension’s settings

All options are now also available in the Project Settings.

The extension is fully translated into German, and I’m currently looking for contributors for French, Japanese, and Chinese.

Here is the link to the Extension Gallery:

And the GitHub repository:

Maybe some of you will find the extension useful!

Best regards,

Toni

2 Likes

Oh, this looks great. How about an Prettier support for the Elements language?

Thank you! Integration would require a prettier-plugin, though, and as far as I’m aware, none currently exists. If you’re already working on one, I’d be glad to adopt it.