-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Global plugins not being found #352
Comments
Created a simpler reproducer: #!/usr/bin/env bash
set -euo pipefail
npm i -g @fsouza/prettierd prettier-plugin-style-order
cat >/tmp/prettierc.json <<EOF
{
"arrowParens": "avoid",
"bracketSpacing": true,
"endOfLine": "auto",
"printWidth": 80,
"semi": true,
"tabWidth": 2,
"bracketSameLine": true,
"embeddedLanguageFormatting": "auto",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxSingleQuote": false,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"useTabs": false,
"configPrecedence": "prefer-file",
"plugins": ["prettier-plugin-style-order"]
}
EOF
env PRETTIERD_DEFAULT_CONFIG=/tmp/prettierc.json prettierd file.css <<EOF
body {
margin: 0;
}
EOF Probably need to figure out the right parameters to make prettier discover global plugins. Will try to look into this some time next week. |
Any movement on this one? .prettierrc {
"plugins": ["prettier-plugin-go-tepmlate"]
}
|
@laughingman-hass thanks for commenting. There aren't any updates, but perhaps you're running into a different issue? Do you have a typo in |
doh! good catch. had attempted it number of times before I thought I'd log it here. |
Thanks for confirming. I still haven't had a chance to look into this unfortunately |
Any updates on this issue? |
I can also see the same problem with plugins and prettierd:
|
I too have come upon this problem and as I workaround I installed prettier globally and from Neovim i just run |
Hi, currently trying to use
prettier-plugin-style-order
andprettier-plugin-tailwindcss
(both installed globally via npm), currently using neovim and null-ls to run prettierd.This is the prettier config
and the error log
The text was updated successfully, but these errors were encountered: