1
0
Fork 0
mirror of synced 2024-06-26 10:41:09 -04:00
ultimate-vim/sources_non_forked/ale/autoload/ale/fixers/stylish_haskell.vim
Amir Salihefendic 6bd9eda8c3 Updated plugins
2018-08-25 18:13:42 +02:00

16 lines
474 B
VimL

" Author: eborden <evan@evan-borden.com>
" Description: Integration of stylish-haskell formatting with ALE.
"
call ale#Set('haskell_stylish_haskell_executable', 'stylish-haskell')
function! ale#fixers#stylish_haskell#Fix(buffer) abort
let l:executable = ale#Var(a:buffer, 'haskell_stylish_haskell_executable')
return {
\ 'command': ale#Escape(l:executable)
\ . ' --inplace'
\ . ' %t',
\ 'read_temporary_file': 1,
\}
endfunction