Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 594 Bytes

README.md

File metadata and controls

30 lines (26 loc) · 594 Bytes

phpfmt.nvim

PHP (phpcbf) auto format plugin for nvim. Inspired from vim-phpfmt.

Installation

  • Neovim >= 0.7.0
  • phpcbf
use "yuchanns/phpfmt.nvim"

Usage

Configuration

require("phpfmt").setup({
  -- Default configs
  cmd = "phpcbf",
  standard = "PSR12"
  auto_format = false,
})

Manual Format

-- using lua function
: lua require("phpfmt").formatting()

Contributing

Bug reports and feature requests are welcome! Feel free to make PRs!