" Autocompletion via neco-ghc
let g:haskellmode_completion_ghc = 0
setlocal omnifunc=necoghc#omnifunc

nnoremap <buffer> <silent> <F8> :wa<CR>:NeomakeProject stackbuild<CR>

" ghc-mod mappings
nnoremap <silent> <leader>ht :GhcModType!<CR>
nnoremap <silent> <leader>hI :GhcModTypeInsert!<CR>
nnoremap <silent> <leader>hl :GhcModTypeClear<CR>
nnoremap <silent> <leader>hi :GhcModInfo!<CR>

" Auto-sort imports
autocmd BufWritePre <buffer> HaskellSortImport


" Autocompletion via neco-ghc
let g:haskellmode_completion_ghc = 0
setlocal omnifunc=necoghc#omnifunc

nnoremap <buffer> <silent> <F8> :wa<CR>:NeomakeProject stackbuild<CR>

" ghc-mod mappings
nnoremap <silent> <leader>ht :GhcModType!<CR>
nnoremap <silent> <leader>hI :GhcModTypeInsert!<CR>
nnoremap <silent> <leader>hl :GhcModTypeClear<CR>
nnoremap <silent> <leader>hi :GhcModInfo!<CR>

" Replace tags with Intero
nnoremap <silent> <C-]> :InteroGoToDef<CR>

" Auto-sort imports
autocmd BufWritePre <buffer> HaskellSortImport


Use Intero for go to definition
Use Intero for go to definition

rdnetto/vimrc