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
Try checking your config file for the g:prettier#autoformat variable. If you see:
let g:prettier#autoformat = 1
Try to either set this value to 0, or remove the line entirely (vim-prettier defaults the value to 0).
I was brought here on an unrelated note. I noticed that my cursor moves to the front of the line (functional equivalent of ^) whenever I save. It was getting annoying that I was losing my cursor position. This only seems to be occurring on my linux computer. My mac appears fine.
If you're looking for a "fix", you can remove the augroup Prettier.
Note that this will break autoformat functionality when you set let g:prettier#autoformat = 1. I personally only use :Prettier and do not rely on any auto formatting.
How to cancel the auto format when i save?
when i save the code , i didn't want it to auto format; How am i to set the config
The text was updated successfully, but these errors were encountered: