Setup vim haskell mode

213f54ffcbae223d660a65ce94ad0b35c4942d9e
Alexis Sellier committed ago 1 parent 3f55139b
.vimrc +11 -0
41 41
42 42
let mapleader = ","
43 43
let g:goyo_margin_top = 0
44 44
let g:goyo_margin_bottom = 0
45 45
let g:goyo_width = 120
46 +
let g:deoplete#enable_at_startup = 1
46 47
let $NVIM_TUI_ENABLE_CURSOR_SHAPE=1
47 48
48 49
" Per file-type indentation
49 50
autocmd BufEnter *.hs  set softtabstop=4|set shiftwidth=4
50 51
autocmd BufEnter *.js  set softtabstop=4|set shiftwidth=4
52 53
autocmd BufEnter *.c   set shiftwidth=4|set noexpandtab
53 54
autocmd BufEnter *.h   set shiftwidth=4|set noexpandtab
54 55
autocmd BufEnter *.lua set shiftwidth=2|set expandtab
55 56
autocmd BufEnter *.erl set softtabstop=4|set shiftwidth=4
56 57
58 +
" Haskell
59 +
let g:haskellmode_completion_ghc = 0
60 +
let g:haskell_enable_quantification = 1
61 +
let g:haskell_indent_where = 2
62 +
let g:haskell_indent_case = 4
63 +
let g:haskell_indent_guard = 4
64 +
autocmd FileType haskell setlocal omnifunc=necoghc#omnifunc
57 65
au FileType haskell setlocal makeprg=stack\ build
58 66
au FileType haskell setlocal errorformat=
59 67
                \%-G,
60 68
                \%-Z\ %#,
61 69
                \%W%f:%l:%c:\ Warning:\ %m,
120 128
Plug 'airblade/vim-gitgutter'
121 129
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
122 130
Plug 'junegunn/goyo.vim'
123 131
Plug 'neomake/neomake'
124 132
Plug 'tpope/vim-fugitive'
133 +
Plug 'eagletmt/neco-ghc'
134 +
Plug 'shougo/deoplete.nvim'
135 +
Plug 'neovimhaskell/haskell-vim'
125 136
126 137
call plug#end()