diff options
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/fixers/dhall_format.vim | 7 | ||||
-rw-r--r-- | autoload/ale/fixers/dhall_freeze.vim | 12 | ||||
-rw-r--r-- | autoload/ale/fixers/dhall_lint.vim | 7 |
3 files changed, 8 insertions, 18 deletions
diff --git a/autoload/ale/fixers/dhall_format.vim b/autoload/ale/fixers/dhall_format.vim index 0812a186..4f12abc8 100644 --- a/autoload/ale/fixers/dhall_format.vim +++ b/autoload/ale/fixers/dhall_format.vim @@ -3,12 +3,9 @@ " function! ale#fixers#dhall_format#Fix(buffer) abort let l:executable = ale#dhall#GetExecutableWithOptions(a:buffer) - let l:command = l:executable - \ . ' format' - \ . ' --inplace %t' return { - \ 'command': l:command, - \ 'read_temporary_file': 1, + \ 'command': l:executable + \ . ' format' \} endfunction diff --git a/autoload/ale/fixers/dhall_freeze.vim b/autoload/ale/fixers/dhall_freeze.vim index e029a83d..ff54482d 100644 --- a/autoload/ale/fixers/dhall_freeze.vim +++ b/autoload/ale/fixers/dhall_freeze.vim @@ -1,18 +1,14 @@ " Author: toastal <toastal@posteo.net> -" Description: Dhall's package freezing +" Description: Dhall’s package freezing call ale#Set('dhall_freeze_options', '') function! ale#fixers#dhall_freeze#Freeze(buffer) abort let l:executable = ale#dhall#GetExecutableWithOptions(a:buffer) - let l:command = l:executable - \ . ' freeze' - \ . ale#Pad(ale#Var(a:buffer, 'dhall_freeze_options')) - \ . ' --inplace %t' - return { - \ 'command': l:command, - \ 'read_temporary_file': 1, + \ 'command': l:executable + \ . ' freeze' + \ . ale#Pad(ale#Var(a:buffer, 'dhall_freeze_options')) \} endfunction diff --git a/autoload/ale/fixers/dhall_lint.vim b/autoload/ale/fixers/dhall_lint.vim index 18fe9788..149a6581 100644 --- a/autoload/ale/fixers/dhall_lint.vim +++ b/autoload/ale/fixers/dhall_lint.vim @@ -3,12 +3,9 @@ function! ale#fixers#dhall_lint#Fix(buffer) abort let l:executable = ale#dhall#GetExecutableWithOptions(a:buffer) - let l:command = l:executable - \ . ' lint' - \ . ' --inplace %t' return { - \ 'command': l:command, - \ 'read_temporary_file': 1, + \ 'command': l:executable + \ . ' lint' \} endfunction |