Improve vim indentation settings

f5f0b1257e2af6db8b2ca65548cbf4b1085c8464
Alexis Sellier committed ago 1 parent 149cd4d7
.vimrc +5 -7
47 47
let g:deoplete#enable_at_startup = 1
48 48
let g:gitgutter_sign_column_always = 1
49 49
let $NVIM_TUI_ENABLE_CURSOR_SHAPE=1
50 50
51 51
" Per file-type indentation
52 -
autocmd BufEnter *.hs  set softtabstop=4|set shiftwidth=4
53 -
autocmd BufEnter *.js  set softtabstop=4|set shiftwidth=4
54 -
autocmd BufEnter *.go  set tabstop=4|set shiftwidth=4|set noexpandtab
55 -
autocmd BufEnter *.c   set shiftwidth=4|set noexpandtab
56 -
autocmd BufEnter *.h   set shiftwidth=4|set noexpandtab
57 -
autocmd BufEnter *.lua set shiftwidth=2|set expandtab
58 -
autocmd BufEnter *.erl set softtabstop=4|set shiftwidth=4
52 +
au FileType haskell     set sts=4 sw=4 expandtab
53 +
au FileType javascript  set sts=4 sw=4 expandtab
54 +
au FileType go          set ts=4  sw=4 noexpandtab
55 +
au FileType c           set       sw=4 noexpandtab
56 +
au FileType lua         set       sw=2 expandtab
59 57
60 58
" Haskell
61 59
let g:haskellmode_completion_ghc = 0
62 60
let g:haskell_enable_quantification = 1
63 61
let g:haskell_indent_where = 2