Installed Neoformat with Plug in init.vim for Neovim 0.7.2 on Linux Mint 19.3

I can't figure out how to get Neoformat to work with Prettier.

I installed Prettier as a snap package in --devmode, so that it wouldn't be sandboxed.

I installed node package Prettier globally, and it does show up when I list the global packages with npm list -g.

I can use Prettier successfully on the command line.

But in nvim, :Neoformat prettier returns: formatter definition for prettier not found.

What critical step am I missing? Tnx

New contributor
wayan is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.


Your Answer

wayan is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy