coc-extensions / coc-svelte

svelte support for (Neo)Vim
MIT License
176 stars 24 forks source link

Prettier doesn't work in .svelte files #19

Closed alcibiadesc closed 3 years ago

alcibiadesc commented 3 years ago

How can I active Prettier when I save in .svelte with this extension?

Thans for your work!

davidroeca commented 3 years ago

You'll need to configure prettier to run with prettier-plugin-svelte. This extension does not format on save, the docs should probably be updated. You can try setting up another vim formatter like vim-filetype-formatter or neoformat to handle this for now.

davidroeca commented 3 years ago

@Alci6 closing -- comment here if you're still having trouble, or open another issue if you think it's related to a bug