Created
June 27, 2018 04:48
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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