diff options
author | Adriaan Zonnenberg <amz@adriaan.xyz> | 2017-04-28 00:01:01 +0200 |
---|---|---|
committer | Adriaan Zonnenberg <amz@adriaan.xyz> | 2017-04-28 00:01:01 +0200 |
commit | 7230cbe9e43d64a02212ae4803abff874e39b8d6 (patch) | |
tree | 251dfe5284bd59122a683d844559be9f4b93e50b /ale_linters/javascript/xo.vim | |
parent | ba6dbde906a297dbb95d350f9cddfbc00f1070a5 (diff) | |
download | ale-7230cbe9e43d64a02212ae4803abff874e39b8d6.zip |
Use ale#Var in linters that didn't use it yet
Diffstat (limited to 'ale_linters/javascript/xo.vim')
-rw-r--r-- | ale_linters/javascript/xo.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ale_linters/javascript/xo.vim b/ale_linters/javascript/xo.vim index dc71f0d3..0276b551 100644 --- a/ale_linters/javascript/xo.vim +++ b/ale_linters/javascript/xo.vim @@ -11,20 +11,20 @@ let g:ale_javascript_xo_use_global = \ get(g:, 'ale_javascript_xo_use_global', 0) function! ale_linters#javascript#xo#GetExecutable(buffer) abort - if g:ale_javascript_xo_use_global - return g:ale_javascript_xo_executable + if ale#Var(a:buffer, 'javascript_xo_use_global') + return ale#Var(a:buffer, 'javascript_xo_executable') endif return ale#path#ResolveLocalPath( \ a:buffer, \ 'node_modules/.bin/xo', - \ g:ale_javascript_xo_executable + \ ale#Var(a:buffer, 'javascript_xo_executable') \) endfunction function! ale_linters#javascript#xo#GetCommand(buffer) abort return ale_linters#javascript#xo#GetExecutable(a:buffer) - \ . ' ' . g:ale_javascript_xo_options + \ . ' ' . ale#Var(a:buffer, 'javascript_xo_options') \ . ' --reporter unix --stdin --stdin-filename %s' endfunction |