summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-05-22 09:38:33 +0100
committerw0rp <devw0rp@gmail.com>2017-05-22 09:38:33 +0100
commit2e442a2cab1e65f7cc030d6699af4b082b0328bb (patch)
tree543cb2bfc22b29f7bb22731eb26c4d3891f8f70c /autoload
parent71bf2bfb94f19b99468b0115e3ea4efb5c241456 (diff)
downloadale-2e442a2cab1e65f7cc030d6699af4b082b0328bb.zip
Fix initialization of the use_global variable for eslint
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/handlers/eslint.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale/handlers/eslint.vim b/autoload/ale/handlers/eslint.vim
index e2ff3fa1..eb7459be 100644
--- a/autoload/ale/handlers/eslint.vim
+++ b/autoload/ale/handlers/eslint.vim
@@ -1,8 +1,8 @@
" Author: w0rp <devw0rp@gmail.com>
" Description: eslint functions for handling and fixing errors.
-let g:ale_javascript_eslint_executable =
-\ get(g:, 'ale_javascript_eslint_executable', 'eslint')
+call ale#Set('javascript_eslint_executable', 'eslint')
+call ale#Set('javascript_eslint_use_global', 0)
function! ale#handlers#eslint#GetExecutable(buffer) abort
if ale#Var(a:buffer, 'javascript_eslint_use_global')