neoclide / coc-prettier

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

singleQuote does not works with TS file #131

Closed joe223 closed 3 years ago

joe223 commented 3 years ago

Here is my configuration:

{
    "suggest.floatEnable": true,        
    "suggest.enablePreview": false,
    "suggest.autoTrigger": "always",
    "suggest.triggerAfterInsertEnter": true,
    "suggest.acceptSuggestionOnCommitCharacter": true,
    "diagnostic.messageTarget": "float",
    "signature.target": "float",
    "hover.target": "float",
    "eslint.autoFixOnSave": false,
    "coc.preferences.formatOnSaveFiletypes": [
        "javascript",
        "javascriptreact",
        "typescript",
        "typescriptreact",
        "css",
        "markdown"
    ],
    "prettier.tslintIntegration": false,
    "prettier.disableSuccessMessage": false,
    "prettier.parser": "typescript",
    "prettier.tabWidth": 4,
    "prettier.singleQuote": true,
    "prettier.trailingComma": "none",
    "prettier.jsxSingleQuote": false,
    "prettier.semi": false
}
chemzqm commented 3 years ago

You didn't enable typescript for coc-prettier

joe223 commented 3 years ago

@chemzqm How to enable typescript for coc-prettier? I already setup formatOnSaveFiletypes