File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ Vim-php-cs-fixer
3
3
4
4
[ ![ ] ( https://img.shields.io/travis/stephpy/vim-php-cs-fixer.svg )] ( https://travis-ci.org/stephpy/vim-php-cs-fixer )
5
5
[ ![ ] ( https://img.shields.io/github/issues/stephpy/vim-php-cs-fixer.svg )] ( https://github.com/stephpy/vim-php-cs-fixer/issues )
6
- [ ![ ] ( https://img.shields.io/badge/doc-%3Ah%20vim-php-cs-fixer-blue.svg )] ( doc/vim-php-cs-fixer.txt )
6
+ [ ![ ] ( https://img.shields.io/badge/doc-%3Ah%20vim--php--cs--fixer-blue.svg )] ( doc/vim-php-cs-fixer.txt )
7
+ [ ![ ] ( https://img.shields.io/badge/license-MIT-blue.svg )] ( doc/vim-php-cs-fixer.txt )
7
8
8
9
Integrate [ php-cs-fixer] ( https://github.com/FriendsOfPHP/PHP-CS-Fixer ) .
9
10
@@ -16,6 +17,7 @@ This plugin will execute the `php-cs-fixer` command on the directory or file (de
16
17
" let g:php_cs_fixer_path = "~/php-cs-fixer.phar" " define the path to the php-cs-fixer.phar
17
18
let g:php_cs_fixer_level = "symfony" " which level ?
18
19
let g:php_cs_fixer_config = "default" " configuration
20
+ "let g:php_cs_fixer_config_file = '.php_cs' " configuration file
19
21
let g:php_cs_fixer_php_path = "php" " Path to PHP
20
22
" If you want to define specific fixers:
21
23
"let g:php_cs_fixer_fixers_list = "linefeed,short_tag,indentation"
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ on the directory or file (depends on which command you call).
10
10
==============================================================================
11
11
LICENSE *vim-php-cs-fixer-license*
12
12
13
- Copyright 2012 by Stéphane PY
13
+ Copyright 2016 by Stéphane PY
14
14
15
15
Permission is hereby granted, free of charge, to any person obtaining
16
16
a copy of this software and associated documentation files (the
Original file line number Diff line number Diff line change 24
24
if exists (' g:php_cs_fixer_config' )
25
25
let g: php_cs_fixer_command = g: php_cs_fixer_command .' --config=' .g: php_cs_fixer_config
26
26
endif
27
+
28
+ if exists (' g:php_cs_fixer_config_file' ) && filereadable (g: php_cs_fixer_config_file )
29
+ let g: php_cs_fixer_command = g: php_cs_fixer_command . ' --config-file=' . g: php_cs_fixer_config_file
30
+ endif
27
31
" }}}
28
32
29
33
You can’t perform that action at this time.
0 commit comments