summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-12-18 09:28:55 +0000
committerw0rp <devw0rp@gmail.com>2018-12-18 09:28:55 +0000
commit9a3be907ea9a3f1e4646fcf3cef43a3572a7eaa2 (patch)
tree20c55691fff2711907ec2567674e065ff0d26ddd /autoload
parent13060a3492f9417831802c39808d70237b906ae1 (diff)
downloadale-9a3be907ea9a3f1e4646fcf3cef43a3572a7eaa2.zip
Close #2152 - Use ale_javascript_standard_options for fixing files too
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/fixers/standard.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/autoload/ale/fixers/standard.vim b/autoload/ale/fixers/standard.vim
index 2b1f6f92..77712d40 100644
--- a/autoload/ale/fixers/standard.vim
+++ b/autoload/ale/fixers/standard.vim
@@ -14,9 +14,11 @@ endfunction
function! ale#fixers#standard#Fix(buffer) abort
let l:executable = ale#fixers#standard#GetExecutable(a:buffer)
+ let l:options = ale#Var(a:buffer, 'javascript_standard_options')
return {
\ 'command': ale#node#Executable(a:buffer, l:executable)
+ \ . (!empty(l:options) ? ' ' . l:options : '')
\ . ' --fix %t',
\ 'read_temporary_file': 1,
\}