[UPDATE][VIM] ALE configuration for Haskell

This commit is contained in:
Bruno BELANYI 2020-04-06 19:13:13 +02:00
parent da32b4f8e6
commit 357ee8fd89

View file

@ -4,3 +4,19 @@ call ftplugined#check_undo_ft()
" Use a small indentation value on Haskell files " Use a small indentation value on Haskell files
setlocal shiftwidth=2 setlocal shiftwidth=2
let b:undo_ftplugin.='|setlocal shiftwidth<' let b:undo_ftplugin.='|setlocal shiftwidth<'
" Use my desired ALE fixers for Haskell
let b:ale_fixers=[ 'brittany' ]
let b:undo_ftplugin.='|unlet! b:ale_fixers'
" Use stack-managed `hlint`
let b:ale_haskell_hlint_executable='stack'
let b:undo_ftplugin.='|unlet! b:ale_haskell_hlint_executable'
" Use stack-managed `brittany`
let b:ale_haskell_brittany_executable='stack'
let b:undo_ftplugin.='|unlet! b:ale_haskell_brittany_executable'
" Automatically format files when saving them
let b:ale_fix_on_save=1
let b:undo_ftplugin='|unlet! b:ale_lint_on_save'