neoclide / coc-prettier

Prettier extension for coc.nvim.
MIT License
546 stars 48 forks source link

Graphlql isn't not formatted on save #56

Open mostrecent opened 4 years ago

mostrecent commented 4 years ago

I tried graphql code as template string preceded with gql and as dedicated .graphql file but nothing happens on save.

I have set "coc.preferences.formatOnSaveFiletypes": ["*"] in my config.

wongjiahau commented 3 years ago

You have to set the file to graphql. Type:

:setfiletype graphql