summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2017-08-29 11:12:23 +0100
committerGitHub <noreply@github.com>2017-08-29 11:12:23 +0100
commit87fb72346ac2353000c987cbc24326301d95a343 (patch)
treeca7d82ca7561d8c0779ce34a31ce2537562f0aeb
parent54900d5216956ccc04e08ab7208e3b1c9fe7bcfd (diff)
parent2a238fda9eb119c89a0cab2e783c2349f59725e6 (diff)
downloadale-87fb72346ac2353000c987cbc24326301d95a343.zip
Merge pull request #885 from morhetz/add-prettier-d-fixer
Add prettier_d fixer path
-rw-r--r--autoload/ale/fixers/prettier.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/autoload/ale/fixers/prettier.vim b/autoload/ale/fixers/prettier.vim
index ae370ac6..7f82ecfd 100644
--- a/autoload/ale/fixers/prettier.vim
+++ b/autoload/ale/fixers/prettier.vim
@@ -1,5 +1,5 @@
" 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.
call ale#Set('javascript_prettier_executable', 'prettier')
@@ -8,6 +8,7 @@ call ale#Set('javascript_prettier_options', '')
function! ale#fixers#prettier#GetExecutable(buffer) abort
return ale#node#FindExecutable(a:buffer, 'javascript_prettier', [
+ \ 'node_modules/.bin/prettier_d',
\ 'node_modules/prettier-cli/index.js',
\ 'node_modules/.bin/prettier',
\])