# Use language settings' prettier parsers as a fallback for files with no path \(\#12273\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/32f11dfa001d3f73c26ed73c9b133e76bd742d12)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 32f11dfa001d3f73c26ed73c9b133e76bd742d12

Requested commit: 32f11dfa001d3f73c26ed73c9b133e76bd742d12

Commit: 32f11dfa001d3f73c26ed73c9b133e76bd742d12

Tree: 6df8e1e6c358f5bddbef7f9cd1e9f5821d032d2e

Author: Kirill Bulatov

Committer: GitHub

## Message

````
Use language settings' prettier parsers as a fallback for files with no path (#12273)

Follow-up of
https://github.com/zed-industries/zed/pull/12095#issuecomment-2123230762
reverting back part of https://github.com/zed-industries/zed/pull/11558
that was related to `language.toml` parsing.

Now all extensions that define `prettier_parser_name` in their language
configs, will enable formatting untitled buffers without any extra
language settings like

```json
{
  "languages": {
    "JSON": {
      "prettier": {
        "allowed": true,
        "parser": "json"
      }
    }
  }
}
```



Release Notes:

- Improved ergonomics of untitled buffer formatting with prettier, no
extra language settings are needed by default.
````

## Parents

- [d5fe2c85d80288a0f50eb1c2dfb1e82f11046402](https://git.cafe/gitcafe/zed/commit/d5fe2c85d80288a0f50eb1c2dfb1e82f11046402?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/32f11dfa001d3f73c26ed73c9b133e76bd742d12?format=markdown)
