Open dyllandry opened 4 years ago
uncomment " let g:prettier#autoformat = 1 by delete this char " !!
I have set-up Prettier to run on save, even without the @format
comment.
let g:prettier#autoformat = 1
let g:prettier#autoformat_require_pragma = 0
When I save a .js
file (for example), prettier runs automatically, but for .vue
it doesn't.
(Pressing <leader>p
still works to run prettier on the same .vue
file, so it's not a syntax error of the file)
Update, the issue seems to be fixed now, I've restarted vim and it started working. I'm not sure what was going wrong previously.
Sorry!
Do you want to request a feature or report a bug? Report a bug.
What is the current/expected behavior? Currently, with the leading
<!-- @prettier -->
pragma, vue files are not autoformatted on save. From what I've read I think they aught to be.What version of
vim-prettier
are you using - (output of:PrettierVersion
) ?1.0.0-alpha
What version of
prettier
are you using - (output of:PrettierCliVersion
) ?1.19.1
What is your
prettier
executable path - (output of:PrettierCliPath
) ?/home/dylan/development/siesde/drp/node_modules/.bin/prettier
Did this work in previous versions of vim-prettier and/or prettier ? I do not know.
I see on readme that vue files shouldnt be auto formatted:
But I see this merged PR that adds the feature.
Some of my vue sfc:
And my vimrc: