Skip to content

Instantly share code, notes, and snippets.

@igrep
Created June 27, 2018 04:48
Show Gist options
  • Select an option

  • Save igrep/304b3455705c68109252fa235b4c2871 to your computer and use it in GitHub Desktop.

Select an option

Save igrep/304b3455705c68109252fa235b4c2871 to your computer and use it in GitHub Desktop.
workaround of bug of Neoformat for Windows https://github.com/sbdchd/neoformat/issues/169
let g:neoformat_haskell_mystylishhaskell = {
\ 'exe': 'stylish-haskell',
\ 'args': ['2>nul'],
\ 'stdin': 1,
\ }
let g:neoformat_enabled_haskell = ['mystylishhaskell']
augroup fmt
autocmd!
autocmd BufWritePre *.hs undojoin | Neoformat mystylishhaskell
augroup END
set formatprg=stylish-haskell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment