We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3da91c5 commit 75db9f4Copy full SHA for 75db9f4
README.markdown
@@ -124,6 +124,16 @@ Or you can define `formatprg`
124
125
and then use `gq`.
126
127
+Alternatively, [vim-autoformat] supports stylish-haskell. To have it automatically reformat the files on save, add to your vimrc:
128
+
129
+```vim
130
+autocmd BufWrite *.hs :Autoformat
131
+" Don't automatically indent on save, since vim's autoindent for haskell is buggy
132
+autocmd FileType haskell let b:autoformat_autoindent=0
133
+```
134
135
+[vim-autoformat]: https://github.com/Chiel92/vim-autoformat
136
137
There is also the [vim-stylish-haskell] plugin, which runs stylish-haskell
138
automatically when you save a Haskell file.
139
0 commit comments