junegunn / fzf.vim

fzf :heart: vim
MIT License
9.62k stars 584 forks source link

fzf Doesn't load all Helptags before showing entries when runnign `nvim +Helptags` from bash #1532

Closed MikeLemo1 closed 6 months ago

MikeLemo1 commented 6 months ago

Basically the title is self explanatory, when running nvim +Helptags in bash nvim open helptags fzf with 14K entries, closing and refreshing it manually gives around 15K. Any idea how to make fzf wait for all helptags to load before displaying :Helptags from bash or reloading it dynamically?

junegunn commented 6 months ago

Have you set up "lazy-loading" of your plugins using your plugin manager? That's probably why.

MikeLemo1 commented 6 months ago

Huh yeah also forgot to mention I use lazy. Is there a simple straight forward way to load / disable this feature per this command or would I have to make somewhat of a global sacrifice to make this Helptags feature work properly? All I'm trying to achieve is access to full nvim helptags list with a keyboard shortcut from bash

MikeLemo1 commented 6 months ago

And loading it with nvim +Helptags! also don't work from this issue

junegunn commented 6 months ago

I'm not familiar with "lazy" and I'm not even a Neovim user, so I can't be of much help. But if it provides an API to load plugins that are not yet loaded, you can write your own command that

  1. loads all plugins
  2. then runs Helptags

With vim-plug, something like this

command! AllHelptags call plug#load(keys(g:plugs)) | Helptags