MunifTanjim / prettier.nvim

Prettier plugin for Neovim's built-in LSP client.
MIT License
289 stars 9 forks source link

Allow specifying path to prettier config file? #33

Open austintheriot opened 1 year ago

austintheriot commented 1 year ago

Hello! First off, thank you for making this plugin! It's been a lifesaver.

I'm currently working in a project that uses a monorepo. Because of this, the pretter.config.js file is in a directory below the current working directory of vim itself. Because of this, the check toconfig_exists returns false even though there is definitely a prettier config for the project. I'm wondering, is there a currently a way to enable supplying a config path when setting up this plugin and/or when running prettier itself? I coudn't find it specified anywhere here.

If not, would this be possible to add?