diff options
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/fixers/php_cs_fixer.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/autoload/ale/fixers/php_cs_fixer.vim b/autoload/ale/fixers/php_cs_fixer.vim index 56aa9150..7697ba64 100644 --- a/autoload/ale/fixers/php_cs_fixer.vim +++ b/autoload/ale/fixers/php_cs_fixer.vim @@ -3,6 +3,7 @@ call ale#Set('php_cs_fixer_executable', 'php-cs-fixer') call ale#Set('php_cs_fixer_use_global', 0) +call ale#Set('php_cs_fixer_options', '') function! ale#fixers#php_cs_fixer#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'php_cs_fixer', [ @@ -14,10 +15,9 @@ endfunction function! ale#fixers#php_cs_fixer#Fix(buffer) abort let l:executable = ale#fixers#php_cs_fixer#GetExecutable(a:buffer) return { - \ 'command': ale#Escape(l:executable) . ' fix %t', + \ 'command': ale#Escape(l:executable) + \ . ' ' . ale#Var(a:buffer, 'php_cs_fixer_options') + \ . ' fix %t', \ 'read_temporary_file': 1, \} endfunction - - - |