Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] how to add defaultFormatter #154

Open
carvalhoviniciusluiz opened this issue Jun 23, 2022 · 1 comment
Open

[question] how to add defaultFormatter #154

carvalhoviniciusluiz opened this issue Jun 23, 2022 · 1 comment

Comments

@carvalhoviniciusluiz
Copy link

in vscode I have this configuration and I want to pass everything to nvim but it's not working

// .vscode/settings.json

{
  "editor.formatOnSave": true,
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[yaml]": {
    "editor.defaultFormatter": "redhat.vscode-yaml"
  },
  "editor.codeActionsOnSave": {
    "source.fixAll": true,
    "source.organizeImports": true
  },
  "typescript.preferences.importModuleSpecifier": "non-relative",
  "js/ts.implicitProjectConfig.experimentalDecorators": true,
  "files.eol": "\n",
  "editor.tabSize": 2
}

on nvim i'm having this problem
Captura de Tela 2022-06-23 às 14 58 59

but there shouldn't be a space between braces
Captura de Tela 2022-06-23 às 15 04 47

my coc-settings.json file
Captura de Tela 2022-06-23 às 16 18 15

any tips?

I thought it might be something in my prettier settings but it's working in vscode so it can't be

I even opened this problem,

prettier/eslint-plugin-prettier#473

but if it solves here I'll close it and point to this one

@chemzqm
Copy link
Member

chemzqm commented Jul 29, 2022

Seems you need prettier to format your document, but it's not working, checkout output by :CocCommand workspace.showOutput Prettier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants