stevearc / conform.nvim

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

prettierd: presence of package.json is insufficient for deciding if prettierd should attach #315

Closed NullVoxPopuli closed 6 months ago

NullVoxPopuli commented 6 months ago

May help with: https://github.com/stevearc/conform.nvim/issues/268

the only question we can ask if prettier should be enable is if there is a prettier config file

stevearc commented 6 months ago

Unfortunately I can't take this change because prettier can use package.json for its configuration (see the link in the comment https://prettier.io/docs/en/configuration.html). You could make this change only in your local config, or you could try only installing prettier locally. If the prettier executable is not found, it won't be run.

NullVoxPopuli commented 6 months ago

silly package.json configs. thanks!