Skip to content

Commit 910bed2

Browse files
committed
Rename var, more logic
1 parent d7e64b8 commit 910bed2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let g:php_cs_fixer_level = "all" " which level ?
1313
let g:php_cs_fixer_config = "default" " configuration
1414
let g:php_cs_fixer_php_path = "php" " Path to PHP
1515
let g:php_cs_fixer_fixers_list = "" " List of fixers
16-
let g:php_cs_fixer_default_mapping = 1 " Enable the mapping by default (<leader>pcd)
16+
let g:php_cs_fixer_enable_default_mapping = 1 " Enable the mapping by default (<leader>pcd)
1717
let g:php_cs_fixer_dry_run = 0 " Call command with dry-run option
1818
let g:php_cs_fixer_verbose = 0 " Return the output of command if 1, else an inline information.
1919
```

plugin/php-cs-fixer.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ endfunction
1515
call s:initVariable("g:php_cs_fixer_path", "~/php-cs-fixer.phar")
1616
call s:initVariable("g:php_cs_fixer_level", "all")
1717
call s:initVariable("g:php_cs_fixer_php_path", "php")
18-
call s:initVariable("g:php_cs_fixer_default_mapping", 1)
18+
call s:initVariable("g:php_cs_fixer_enable_default_mapping", 1)
1919
call s:initVariable("g:php_cs_fixer_dry_run", 0)
2020
call s:initVariable("g:php_cs_fixer_verbose", 0)
2121

@@ -73,7 +73,7 @@ fun! PhpCsFixerFixFile()
7373
call PhpCsFixerFix(expand('%:p'), g:php_cs_fixer_dry_run)
7474
endfun
7575

76-
if(g:php_cs_fixer_default_mapping == 1)
76+
if(g:php_cs_fixer_enable_default_mapping == 1)
7777
nnoremap <silent><leader>pcd :call PhpCsFixerFixDirectory()<CR>
7878
nnoremap <silent><leader>pcf :call PhpCsFixerFixFile()<CR>
7979
endif

0 commit comments

Comments
 (0)