Add prettier_d fixer path

This commit is contained in:
Pavel Pertsev 2017-08-29 11:46:53 +03:00
parent 54900d5216
commit 2a238fda9e

View File

@ -1,5 +1,5 @@
" Author: tunnckoCore (Charlike Mike Reagent) <mameto2011@gmail.com>, " Author: tunnckoCore (Charlike Mike Reagent) <mameto2011@gmail.com>,
" w0rp <devw0rp@gmail.com> " w0rp <devw0rp@gmail.com>, morhetz (Pavel Pertsev) <morhetz@gmail.com>
" Description: Integration of Prettier with ALE. " Description: Integration of Prettier with ALE.
call ale#Set('javascript_prettier_executable', 'prettier') call ale#Set('javascript_prettier_executable', 'prettier')
@ -8,6 +8,7 @@ call ale#Set('javascript_prettier_options', '')
function! ale#fixers#prettier#GetExecutable(buffer) abort function! ale#fixers#prettier#GetExecutable(buffer) abort
return ale#node#FindExecutable(a:buffer, 'javascript_prettier', [ return ale#node#FindExecutable(a:buffer, 'javascript_prettier', [
\ 'node_modules/.bin/prettier_d',
\ 'node_modules/prettier-cli/index.js', \ 'node_modules/prettier-cli/index.js',
\ 'node_modules/.bin/prettier', \ 'node_modules/.bin/prettier',
\]) \])