We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do you want to request a feature or report a bug? Bug
What is the current/expected behavior? Trying to set a default .prettierrc file to be always used
.prettierrc
What version of vim-prettier are you using - (output of :PrettierVersion) ? 1.0.0-beta
vim-prettier
:PrettierVersion
1.0.0-beta
What version of prettier are you using - (output of :PrettierCliVersion) ? 2.1.2
prettier
:PrettierCliVersion
2.1.2
What is your prettier executable path - (output of :PrettierCliPath) ? /Users/username/.nvm/versions/node/v14.15.0/bin/prettier
:PrettierCliPath
/Users/username/.nvm/versions/node/v14.15.0/bin/prettier
Did this work in previous versions of vim-prettier and/or prettier ? No
Info
I am trying to set a default .prettierrc to be used with vim-prettier Cli usage by itself can pick up the .prettierrc file located in user path ~
~
Vim configuration
let g:prettier#autoformat = 1 let g:prettier#exec_cmd_path = "/Users/username/.nvm/versions/node/v14.15.0/bin/prettier" let g:prettier#autoformat_config_present = 1
arrowParens: "always" bracketSpacing: true jsxBracketSameLine: true printWidth: 100 singleQuote: false tabWidth: 4 trailingComma: "all"
Original file (index.ts)
import React from "react"; import ReactDOM from "react-dom"; import {Provider} from "react-redux"; import {Root} from "./Root"; import store from "./store"; ReactDOM.render( <Provider store={store}> <Root /> </Provider>, document.getElementById("root") );
Output with Prettier CLI (prettier index.ts)
prettier index.ts
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { Root } from './Root'; import store from './store'; ReactDOM.render( <Provider store={store}> <Root /> </Provider>, document.getElementById('root'), );
:Prettier
vim +Prettier index.ts
The text was updated successfully, but these errors were encountered:
It was an error in my configuration. I did not realize that it required let g:prettier#autoformat_require_pragma = 0 setting.
let g:prettier#autoformat_require_pragma = 0
Sorry, something went wrong.
No branches or pull requests
Do you want to request a feature or report a bug?
Bug
What is the current/expected behavior?
Trying to set a default
.prettierrc
file to be always usedWhat version of
vim-prettier
are you using - (output of:PrettierVersion
) ?1.0.0-beta
What version of
prettier
are you using - (output of:PrettierCliVersion
) ?2.1.2
What is your
prettier
executable path - (output of:PrettierCliPath
) ?/Users/username/.nvm/versions/node/v14.15.0/bin/prettier
Did this work in previous versions of vim-prettier and/or prettier ?
No
Info
I am trying to set a default
.prettierrc
to be used withvim-prettier
Cli usage by itself can pick up the
.prettierrc
file located in user path~
Vim configuration
.prettierrc
Original file (index.ts)
Output with Prettier CLI (
prettier index.ts
):Prettier
command directly also does nothing.vim +Prettier index.ts
The text was updated successfully, but these errors were encountered: