monkoose / fzf-hoogle.vim Goto Github PK
View Code? Open in Web Editor NEW(neo)vim plugin that uses fzf for previewing hoogle search results
License: MIT License
(neo)vim plugin that uses fzf for previewing hoogle search results
License: MIT License
If you start fzf-hoogle with :Hoogle!
it will open window in new tab, but when you hit enter
to research with new query it opens just default window because in sink*
just :Hoogle
is used.
Not sure how to implement it currently.
I installed Hoogle today and using it from the command line and with server works but no results show up when using through fzf hoogle.
My config:
call plug#begin()
Plug 'monkoose/fzf-hoogle.vim'
Plug 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all'}
call plug#end()
let g:hoogle_path='/usr/bin/hoogle'
Hi, thanks for the great extension.
I noticed the following error, when running :PlugUpdate
.
I think it's due to changes in the repository that lead to this behavior.
I think these changes were not introduced by me (the user). At least not intentionally. And this exact same scenario happened on two different machines with different operating systems.
It can be worked around with:
cd ~/.vim/plugged/fzf-hoogle.vim
git reset --hard
Hi, thanks for this amazing plugin!
Is it possible to have fzf-hoogle read from a local hoogle server? I'd like to be able to fuzzy search any of my local packages
Because on the hackage some base packages changed some html and on /src/
they added type annotations on mouse hover (that change internal html a lot), current source preview
of fzf-hoogle.vim broken and looks ugly.
Possible solution - fix it for this packages, or just completly remove the code with this feature and just open browser tab with source code.
Hi! @monkoose! I just installed fzf-hoogle.vim and upon looking up some stuff, the right pane is nothing but raw JSON:
System infos:
Sometimes getting source code with curl is slow. There is ways for optimizations like caching previously requested pages or maybe using haskell haddock local documentations. Or maybe use asynchronous approach with job_start()
Is there a way to disable fzf-hoogle:
hoogle is not installed. Plugin disabled.
or maybe start the plugin only for .hs files ? I have a per project hoogle installed via nix-shell. As soon as I am out editing any file, I now get the warning (which is not helpful when editing markdown).
neovim has a vim.notify interface that can be helpful for thins kind of message
I added
--bind "ctrl-x:execute(echo {} | xsel -i)" to fzf parameters
it kind of works but the display is messed up unless I exit back to vim
Once in a while I experience a stack smashing error after pressing with a search query, unfortunately the error message is quite bare and I haven't been able to reliable trigger the error. My neovim simply immediately quits and the shell reports a stack smashing error and neovim being terminated by a sigabrt. Would you have any clue how I'd be able to gather more information to debug this error? I saw a commit for fixing an error related to empty searches, this is not what causes this error given that I've experienced the stack smashing error with searches which obviously do yield results such as searching for sort
.
Luckily I haven't had any big problems but I think this is quite a severe bug given that it causes data loss. This is because when neovim is forcefully killed by the sigabrt nothing is saved nor is it recoverable by undofile.
Some version info which might be related:
hoogle 5.0.18
NVIM v0.5.0-dev+933-g4620ad604
Tmux 3.1c-2.1
fish 3.1.2-1744-ga4e2a3c04
I suspect this might have something to do with hoogle
given that a stack smashing error is related to gcc
and given that your plugin runs as vimscript I wouldn't expect it to trigger a stack smashing error, haskell which compiles to c would obviously be a much more likely culprit. Although I do suspect the way hoogle
is triggered would cause this error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.