diff options
author | toastal <561087+toastal@users.noreply.github.com> | 2021-08-09 11:43:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-09 20:43:50 +0900 |
commit | a099fe24b2e898c93c0aa4391e5a5631932684a6 (patch) | |
tree | e016abd55f81e00595e887dd9700e4faaa7448ce /autoload | |
parent | 9264ffda2362bf54c223370b2dc5482354b290b7 (diff) | |
download | ale-a099fe24b2e898c93c0aa4391e5a5631932684a6.zip |
Dhall fixes: use stdin, doc errors (#3868)
* purs-tidy
* Dhall fixes: use stdin, docs errors
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 |