matsuikazuto
Posted on December 15, 2017
The Coding Standards are important
I'm WordPress Developer.
I am conscious of writing readable code, but since I am a human, I make mistakes.
Let's use formatter. And I want to run phpcbf from Neovim.
Great plugin is neoformat
Below are my settings.
let g:neoformat_php_phpcbf = {
\ 'exe': 'phpcbf',
\ 'args': [
\ '--standard=WordPress',
\ '--extensions=php',
\ '%',
\ '||',
\ 'true'
\ ],
\ 'stdin': 1,
\ 'no_append': 1
\ }
let g:neoformat_enabled_php = ['phpcbf']
nnoremap <leader>nf :Neoformat<cr>
💖 💪 🙅 🚩
matsuikazuto
Posted on December 15, 2017
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.