1
0
Fork 0
mirror of synced 2024-06-18 06:51:11 -04:00
ultimate-vim/sources_non_forked/ale/autoload/ale/fixers/hlint.vim

17 lines
471 B
VimL
Raw Normal View History

2018-08-25 12:13:42 -04:00
" Author: eborden <evan@evan-borden.com>
" Description: Integration of hlint refactor with ALE.
"
call ale#Set('haskell_hlint_executable', 'hlint')
function! ale#fixers#hlint#Fix(buffer) abort
let l:executable = ale#Var(a:buffer, 'haskell_hlint_executable')
return {
\ 'command': ale#Escape(l:executable)
\ . ' --refactor'
\ . ' --refactor-options="--inplace"'
\ . ' %t',
\ 'read_temporary_file': 1,
\}
endfunction