README: update the recipe for config files.
This commit is contained in:
parent
87f3e80b44
commit
9bec49b7f9
@ -447,11 +447,11 @@ For example for `jscs`:
|
|||||||
```vim
|
```vim
|
||||||
function! FindConfig(prefix, what, where)
|
function! FindConfig(prefix, what, where)
|
||||||
let cfg = findfile(a:what, escape(a:where, ' ') . ';')
|
let cfg = findfile(a:what, escape(a:where, ' ') . ';')
|
||||||
return cfg !=# '' ? a:prefix . ' ' . cfg : ''
|
return cfg !=# '' ? ' ' . a:prefix . ' ' . cfg : ''
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
autocmd FileType javascript let b:syntastic_javascript_jscs_args =
|
autocmd FileType javascript let b:syntastic_javascript_jscs_args =
|
||||||
\ get(g:, 'syntastic_javascript_jscs_args', '') . ' ' .
|
\ get(g:, 'syntastic_javascript_jscs_args', '') .
|
||||||
\ FindConfig('-c', '.jscsrc', expand('<amatch>:p:h', 1))
|
\ FindConfig('-c', '.jscsrc', expand('<amatch>:p:h', 1))
|
||||||
```
|
```
|
||||||
<a name="faqbdelete"></a>
|
<a name="faqbdelete"></a>
|
||||||
|
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:_SYNTASTIC_START
|
lockvar! g:_SYNTASTIC_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:_SYNTASTIC_VERSION = '3.7.0-160'
|
let g:_SYNTASTIC_VERSION = '3.7.0-161'
|
||||||
lockvar g:_SYNTASTIC_VERSION
|
lockvar g:_SYNTASTIC_VERSION
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user