stevearc / conform.nvim

Lightweight yet powerful formatter plugin for Neovim
MIT License
2.89k stars 150 forks source link

fix(prettier): Buffer range formatting #322

Closed cryptomilk closed 6 months ago

cryptomilk commented 6 months ago

Currently we provide a filename, which means prettier will format the given file and not what we feed via stdin.

stevearc commented 6 months ago

Good catch, thanks!

cryptomilk commented 6 months ago

Thanks. It still doesn't work as expected as there is a bug in prettier: https://github.com/prettier/prettier/issues/16140