prettierd icon indicating copy to clipboard operation
prettierd copied to clipboard

Overrides do not work in default config.

Open TSoli opened this issue 1 year ago • 5 comments

I am using prettierd with null-ls in neovim. Basically, I can see that the default config is working because changing it is causing changes in the formatting when I apply it with :lua vim.lsp.buf.format() after reloading prettierd. However, adding overrides to this default config does not work. Overrides do seem to work if I make a .pretterrc file in the project directory though which is how I think this is different from #200 ?

To reproduce do something like this for the default prettierrc.json

{
  "printWidth": 80,
  "proseWrap": "always",
  "overrides": [
    {
      "files": "**/*.md",
      "options": {
        "printWidth": 100
      }
    }
  ]
}

And to test, also try putting the same file in the cwd of the markdown file in question.

I also tried playing around with the semi option for js files and similar results so it seems to be an issue with overrides in default config.

TSoli avatar Jun 27 '23 02:06 TSoli