summaryrefslogtreecommitdiff
path: root/autoload/ale/fixers/importjs.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/ale/fixers/importjs.vim')
-rw-r--r--autoload/ale/fixers/importjs.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/autoload/ale/fixers/importjs.vim b/autoload/ale/fixers/importjs.vim
index e8eedb12..b5487b2c 100644
--- a/autoload/ale/fixers/importjs.vim
+++ b/autoload/ale/fixers/importjs.vim
@@ -1,15 +1,16 @@
" Author: Jeff Willette <jrwillette88@gmail.com>
" Description: Integration of importjs with ALE.
-call ale#Set('js_importjs_executable', 'importjs')
+call ale#Set('javascript_importjs_executable', 'importjs')
function! ale#fixers#importjs#ProcessOutput(buffer, output) abort
let l:result = ale#util#FuzzyJSONDecode(a:output, [])
+
return split(get(l:result, 'fileContent', ''), "\n")
endfunction
function! ale#fixers#importjs#Fix(buffer) abort
- let l:executable = ale#Var(a:buffer, 'js_importjs_executable')
+ let l:executable = ale#Var(a:buffer, 'javascript_importjs_executable')
if !executable(l:executable)
return 0