You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Bug
What is the current/expected behavior?
When I run prettier with p, it formats the file one way; when I run prettier from VSCode, it formats the file a bit differently.
We have a pre-commit hook in the project, and unfortunately, the formatting applied by Vim is incorrect.
What version of vim-prettier are you using - (output of :PrettierVersion) ?
1.0.0
What version of prettier are you using - (output of :PrettierCliVersion) ?
2.8.8
What is your prettier executable path - (output of :PrettierCliPath) ? /Users/akoskm/Projects/my-project/node_modules/.bin/prettier
Did this work in previous versions of vim-prettier and/or prettier ?
No information.
Here's my prettierrc.js file:
const originalConfig = require('eslint-config-my-project/.prettierrc');
// ---------------------------------------------------------------------------------------
// NOTE: When we upgrade to prettier 3.x.x we should uncomment the `ignorePath` and remove
// the `.prettierignore` file.
// ---------------------------------------------------------------------------------------
module.exports = {
...originalConfig,
// ignorePath: '.eslintignore',
};
And the contents of ~/.vimrc:
let g:prettier#autoformat = 1
let g:prettier#autoformat_require_pragma = 0
let g:prettier#autoformat_config_present = 1
let g:prettier#exec_cmd_async = 1
The text was updated successfully, but these errors were encountered:
I switched to LazyVim, so I can't really reproduce this, but I hope your comment will help those who want to get this working in their custom setup - without LazyVim. Thanks @gkoberger.
Do you want to request a feature or report a bug?
Bug
What is the current/expected behavior?
When I run prettier with p, it formats the file one way; when I run prettier from VSCode, it formats the file a bit differently.
We have a pre-commit hook in the project, and unfortunately, the formatting applied by Vim is incorrect.
What version of
vim-prettier
are you using - (output of:PrettierVersion
) ?1.0.0
What version of
prettier
are you using - (output of:PrettierCliVersion
) ?2.8.8
What is your
prettier
executable path - (output of:PrettierCliPath
) ?/Users/akoskm/Projects/my-project/node_modules/.bin/prettier
Did this work in previous versions of vim-prettier and/or prettier ?
No information.
Here's my
prettierrc.js
file:And the contents of
~/.vimrc
:The text was updated successfully, but these errors were encountered: