prettier-plugin-sort-imports
prettier-plugin-sort-imports copied to clipboard
nvim with vim-coc and coc-prettier does not respect the settings for this plugin
Your Environment
- Prettier version: 2.7.1
- node version 16.14.0:
- package manager: npm@8
- IDE: nvim 0.8.0 with vim-coc using coc-prettier
Describe the bug
My config is based in package.json and all settings there are respected but the ones from this plugin are ignored so no sorting or grouping is made when i save the file.
When I use vs-code there it works
To Reproduce
Open a file, change order of a destructed import and save with :w
Expected behavior
The order should be restored
Screenshots, code sample, etc
Configuration File (cat .prettierrc, prettier.config.js, .prettier.js)
package.json
"prettier": {
"jsxSingleQuote": true,
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"importOrder": [
"bootstrap",
"./util(?:s)?|^Util",
"types|^Types",
"(?:[d|D]ata/)?[h|H]ooks|./use[A-Z]",
"constants(.*)",
"App/api-client",
"App/languages",
"Api",
"data|^Data",
"^Pages",
"components|^Components",
"^[./]"
],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true
},
Error log
Contribute to @trivago/prettier-plugin-sort-imports
- [ ] I'm willing to fix this bug 🥇
+1 one this as well, seems like it is still broken