DEV Community

loading...

Discussion on: Using NeoVim as an effortless way to edit code – Installation and Setup Guide for Windows 10

Collapse
ritikadas profile image
Ritika Das Author

Install the plugin by:

:CocInstall coc-prettier
Enter fullscreen mode Exit fullscreen mode

Run :CocConfig to open coc-settings.json, and add the languages you to be able to format via Prettier in an array.

{
  "coc.preferences.formatOnSaveFiletypes": ["css", "markdown", "javascript", "html"],
}
Enter fullscreen mode Exit fullscreen mode

I hope this helps you to have Prettier.

Collapse
witherc0d3 profile image
WITHERC0D3

Thanks now i have set up vim and its quite amazing to shift from VScode to VIM as its incredbly light.

Thread Thread
ritikadas profile image
Ritika Das Author

Great to know @witherc0d3 :)