praem90 / nvim-phpcsf

A simple nvim plugin wrapper for both phpcs and phpcbf.
https://praem90.github.io/nvim-phpcsf/
13 stars 3 forks source link

README.md change needed for PHPCBF path variable #6

Closed xavortm closed 8 months ago

xavortm commented 8 months ago

Hi!

I was setting up the plugin and found that the variable shown in the docs is different from the one in the codebase.

The readme says to set let g:nvim_phpcs_config_phpcbf_path = 'phpcbf'

But I see in here https://github.com/praem90/nvim-phpcsf/blob/master/lua/phpcs/init.lua#L15 the variable in use is "paths" instead of "path".

So the correct variable should be let g:nvim_phpcs_config_phpcbf_paths = 'phpcbf' instead.

Changing this fixed my issue of "phpcbf" not found error.

praem90 commented 8 months ago

Thanks for raising the issue.. I'll fix this