- Install phpcs as per their readme and add a phpcs.xml to the root of the project with your rules.
- Install
Coc-diagnostic
(:CocInstall coc-diagnostic
)
On you ~/.config/nvim/coc-settings.json
{
[...]
"diagnostic-languageserver.filetypes": {
"php": ["phpcs"]
},
[...]
}
Restart vim. You should already start seeing your PHP files with possible errors poping up =)