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
Note, it is a bit inconsistent.
If I had more lines, sometimes it formats them correctly. I was pruning my JSON lines to try to find a small reproducible example.
The text was updated successfully, but these errors were encountered:
Thanks for reporting this issue, when sending the selected text to prettier and having it attempt to format it, this relies on the line being sent to be on a valid format that the parser can understand, that's why you get that error since the bellow statement is not a valid JSON format on it's own:
vim-prettier 0.2.3
I have the following JSON:
If I simply run
:Prettier
, I get this correct output:But, if I visually select just this line:
And run:
:'<,'>Prettier
, I get an error:Prettier version:
Note, it is a bit inconsistent.
If I had more lines, sometimes it formats them correctly. I was pruning my JSON lines to try to find a small reproducible example.
The text was updated successfully, but these errors were encountered: