DEV Community

loading...

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

Collapse
witherc0d3 profile image
WITHERC0D3

so i have a question. i set up everything the same way as u did however when i did :PlugInstall and installed everything i didnt get a file named coc-settings.json which is important for me to have Prettier and stuff how do i fix this?

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 :)