vim-hoogle icon indicating copy to clipboard operation
vim-hoogle copied to clipboard

Does vim-hoogle work with stack?

Open timchu opened this issue 10 years ago • 3 comments

I'm using the stack package manager, and vim-hoogle doesn't seem to just work the way it does in cabal. Whenever I hoogle something in vim, I get the error

"HoogleSearch" [Not edited] --No lines in buffer--
shell returned 127

timchu avatar Dec 03 '15 22:12 timchu

vim-hoogle work with hoogle (the executable which should be in your path), it doesn't give a fuck about cabal or stack

Twinside avatar Dec 03 '15 22:12 Twinside

@timchu did you ever find a fix for this? I see something similar with a missing db error

Error, database does not exist (run 'hoogle generate' first)
    Filename: /home/will/.hoogle/default-haskell-5.0.1.hoo

The ~/.hoogle directory does not appear to exist at all. Even after running hoogle data. hoogle on my command line works fine

willscripted avatar Nov 07 '16 18:11 willscripted

Yes, it can be used with stack by adding this line to your .vimrc

let g:hoogle_search_bin = 'stack hoogle --'

lazamar avatar Feb 09 '20 12:02 lazamar