Update haskell vim stuff

21fad4fc88fdb5d9c63ea560eadacb2342d5c5f4
Alexis Sellier committed ago 1 parent e127b649
.vimrc +6 -9
125 125
au FileType lua         setlocal       sw=2 expandtab
126 126
au FileType sh,zsh      setlocal ts=2  sw=2 noexpandtab
127 127
au FileType vim,ruby    setlocal sts=2 sw=2 expandtab
128 128
au FileType help        setlocal ts=4  sw=4 noexpandtab
129 129
130 -
if executable('haskell-tags')
131 -
  au BufWritePost *.hs  silent !haskell-tags % '.tags'
132 -
  au BufWritePost *.hsc silent !haskell-tags % '.tags'
133 -
endif
134 -
135 130
" Remove trailing whitespace on save
136 131
autocmd BufWritePre * call s:StripTrailing()
137 132
function! s:StripTrailing()
138 133
    let l = line(".")
139 134
    let c = col(".")
142 137
endfunction
143 138
144 139
" Haskell
145 140
let g:haskellmode_completion_ghc = 0
146 141
let g:haskell_enable_quantification = 1
147 -
let g:haskell_indent_where = 2
148 -
let g:haskell_indent_case = 4
149 -
let g:haskell_indent_guard = 4
150 -
autocmd FileType haskell setlocal omnifunc=necoghc#omnifunc
142 +
au FileType haskell setlocal omnifunc=necoghc#omnifunc
151 143
au FileType haskell setlocal makeprg=stack\ build
152 144
au FileType haskell setlocal errorformat=
153 145
                \%-G,
154 146
                \%-Z\ %#,
155 147
                \%W%f:%l:%c:\ Warning:\ %m,
157 149
                \%E%>%f:%l:%c:,
158 150
                \%+C\ \ %#%m,
159 151
                \%W%>%f:%l:%c:,
160 152
                \%+C\ \ %#%tarning:\ %m,
161 153
154 +
if executable('haskell-tags')
155 +
  au BufWritePost *.hs  silent !haskell-tags % '.tags'
156 +
  au BufWritePost *.hsc silent !haskell-tags % '.tags'
157 +
endif
158 +
162 159
" File-type
163 160
filetype on
164 161
filetype plugin on
165 162
filetype indent on
166 163