Skip to content

Commit 7a7f255

Browse files
committed
Change finder to allow user to launch command even in non root dir
1 parent c9e1f65 commit 7a7f255

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Vim-php-cs-fixer by steph_py
33

44
Integrate [php-cs-fixer](https://github.com/fabpot/PHP-CS-Fixer) created by fabpot.
55

6+
This plugin will execute the php-cs-fixer fix command on the directory where you launch the command.
7+
68
Options available:
79

810
```viml
@@ -15,8 +17,6 @@ let g:php_cs_fixer_default_mapping = 1 " Enable the mapping by default
1517

1618
Default mapping is `<leader>pcd`
1719

18-
**You have to launch this command at the root of your project**
19-
2020
If you want to change it:
2121

2222
```viml

plugin/php-cs-fixer.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if (!exists("g:php_cs_fixer_level"))
77
endif
88

99
if (!exists("g:php_cs_fixer_finder"))
10-
let g:php_cs_fixer_finder = "Symfony21Finder"
10+
let g:php_cs_fixer_finder = "SymfonyFinder"
1111
endif
1212

1313
if (!exists("g:php_cs_fixer_php_path"))

0 commit comments

Comments
 (0)