Zed won't read TailwindCSS plugins from prettier.config.js
#23564
tifandotme
started this conversation in
Language Support
Replies: 1 comment 1 reply
-
Zed is just invoking prettier, not specifying a configuration file to use. Prettier loads files from different configuration files which have different precedence.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Check for existing issues
Describe the bug / provide steps to reproduce it
Zed is not using
prettier-plugin-tailwindcss
when I run Format Document.This only happens if I use this config format (prettier.config.js):
However, Zed reads the plugins correctly using this format (.prettierrc), which is proven by it sorting the Tailwind CSS classes:
Zed Version and System Specs
Zed: v0.170.1 (Zed)
OS: macOS 15.2.0
Memory: 8 GiB
Architecture: aarch64
If applicable, add screenshots or screencasts of the incorrect state / behavior
Format Document and running
bun run format:write
should results in the same formatting behaviour.Screen.Recording.2025-01-23.at.23.48.29.mov
If applicable, attach your Zed.log file to this issue.
Zed.log
Beta Was this translation helpful? Give feedback.
All reactions