PHP (phpcbf) auto format plugin for nvim. Inspired from vim-phpfmt.
- Neovim >= 0.7.0
- phpcbf
use "yuchanns/phpfmt.nvim"
require("phpfmt").setup({
-- Default configs
cmd = "phpcbf",
standard = "PSR12"
auto_format = false,
})
-- using lua function
: lua require("phpfmt").formatting()
Bug reports and feature requests are welcome! Feel free to make PRs!