vim-prettier
vim-prettier copied to clipboard
Fix failed to parse buffer when autoformat
Summary
When autoformat is enabled, it tries to format the buffer even if the buffer is not actually a correct file for prettier to format. With this fix, only files with extension js, jsx, ts, tsx will be formatted, other than that it will be ignored.