nvim: Add a shortcut for invoking haskdogs

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-04-06 10:56:30 +05:30
parent 6297e35f45
commit 5f0dbec511

View file

@ -412,6 +412,7 @@ augroup haskell_maps
au FileType haskell setlocal keywordprg=:Hoogle au FileType haskell setlocal keywordprg=:Hoogle
au FileType haskell nmap <LocalLeader>b :Neomake!<CR> au FileType haskell nmap <LocalLeader>b :Neomake!<CR>
au FileType haskell nmap <LocalLeader>t :NeomakeSh stack exec -- hasktags -x -c .<CR> au FileType haskell nmap <LocalLeader>t :NeomakeSh stack exec -- hasktags -x -c .<CR>
au FileType haskell nmap <LocalLeader>td :NeomakeSh stack exec -- haskdogs<CR>
au FileType haskell nmap <LocalLeader>g :Ghcid<CR> au FileType haskell nmap <LocalLeader>g :Ghcid<CR>
au FileType haskell nmap <LocalLeader>k :GhcidKill<CR> au FileType haskell nmap <LocalLeader>k :GhcidKill<CR>
au FileType haskell nmap <LocalLeader>c :HoogleClose<CR> au FileType haskell nmap <LocalLeader>c :HoogleClose<CR>