diff --git a/nvim/init.vim b/nvim/init.vim index 431a0e0..a07456d 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -53,6 +53,8 @@ Plug 'Olical/vim-scheme', { 'for': 'scheme', 'on': 'SchemeConnect' } Plug 'ekmett/haskell-vim', { 'for': [ 'haskell', 'cabal' ] } Plug 'neomake/neomake' Plug 'ndmitchell/ghcid', { 'rtp': 'plugins/nvim' } +Plug 'Twinside/vim-hoogle' +Plug 'hspec/hspec.vim' " For Nix Plug 'LnL7/vim-nix', { 'for': 'nix' } " For autocompletion @@ -197,6 +199,15 @@ nnoremap nj :NeomakeListJobs nnoremap nca :NeomakeCancelJobs nnoremap ncj :NeomakeCancelJob +" Haskell specific +" For ghcid +nnoremap hg :Ghcid +nnoremap hk :GhcidKill +" For Hoogle +nnoremap hc :HoogleClose +nnoremap ho :exe ':Hoogle ' . expand('') +nnoremap hi :exe ':HoogleInfo ' . expand('') + " Quickfix nnoremap fn :cnext nnoremap fp :cprevious @@ -270,6 +281,7 @@ let g:haskell_indent_guard = 2 let g:haskell_indent_case_alternative = 1 let g:cabal_indent_section = 2 let g:ghcid_command = 'stack exec -- ghcid' +let g:hoogle_search_bin = 'stack exec -- hoogle' " Use deoplete let g:deoplete#enable_at_startup = 1