" hoogle bindings
" (prereq: stack install hoogle && hoogle generate)
" Query hoogle for what's under the cursor, and put it in the intero buffer
au FileType haskell noremap <silent> <leader>iq :InteroSend<SPACE>:!hoogle<SPACE><C-R><C-W><CR>
" qUery hoogle for a User prompted string
au FileType haskell noremap <leader>iu :InteroSend<SPACE>:!hoogle<SPACE>
We could also do this with :InteroEval, but it's annoying because for
multi-line output Vim prompts you to press Enter to continue.
Instead, I just want my hoogle output (for example) to show up
Inimmediately in the tero buffer.
Adds the
:InteroSend
command.This is handy for doing things like this:
We could also do this with :InteroEval, but it's annoying because for multi-line output Vim prompts you to press Enter to continue. Instead, I just want my hoogle output (for example) to show up Inimmediately in the tero buffer.