cloudhead / neovim-fuzzy

Minimalistic fuzzy file finding for neovim
BSD 3-Clause "New" or "Revised" License
111 stars 17 forks source link

Make it clear when fzy is not installed #5

Closed jwoos closed 8 years ago

jwoos commented 8 years ago

I installed fzy on my desktop and moved over the init.vim file to my laptop but I could not figure out why it would not load the plugin. I checked vim-plug, my neovim installation and reinstalled my plugins several times. I decided to look at the plugin and I saw

if exists("g:loaded_fuzzy") || &cp || !executable('fzy') || !has('nvim')
  finish
endif

Perhaps a warning would be better? Silently not registering the plugin isn't very good UX

cloudhead commented 8 years ago

Good idea.

digitalcosmos commented 8 years ago

I'd like to add to this issue that ag should be mentioned as a requirement in README. Thanks!

ysolis commented 8 years ago

uhm, ag is an alias for apt-get in oh-my-zsh when ubuntu or debian plugin are enabled, will exist any posible problem if i call vim from a zsh shell with this alias enabled ?

cloudhead commented 8 years ago

The plugin shouldn't use your alias @ysolis, as it uses the vim system() function.

cloudhead commented 8 years ago

Fixed in 8b2f8b280f1bb52b8a33ceebf4177a4af2bf2735

It now gives you an error when you try to use it.